v.23.1Bug Fix

Fix LOGICAL_ERROR for JOIN with subquery, UNION, and TOTALS

Fix LOGICAL_ERROR The top step of the right pipeline should be ExpressionStep for JOIN with subquery, UNION, and TOTALS. Fixes #43687. #44673 (Nikolai Kochetov).