v.25.4Bug Fix (user-visible misbehavior in an official stable release)

Validate access to underlying tables

Validate access to underlying tables for the Merge engine. #78339 (Pervakov Grigorii).