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

Do not try to substitute table functions

Do not try to substitute table functions to its cluster alternative in presence of a JOIN or subquery. #84335 (Konstantin Bogdanov).