You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gap 1 - Correlated subqueries:
- SubqueryExecutor now passes outer_resolve through to inner PlanExecutor
- Filter and Project operators accept an outer_resolver fallback for
unresolved column names (enables correlated references like u.dept)
- IndependentCursorDataSource prevents inner scans from resetting outer
scan cursors when both query the same table
- Added alias field to TableInfo for table alias resolution
- PlanBuilder extracts and stores table aliases from FROM clauses
Gap 2 - DML with cross-shard subqueries (infrastructure):
- DistributedPlanner gains extended constructor with RemoteExecutor
- Added subquery detection, materialization, and WHERE rewriting helpers
- rewrite_where_subquery replaces IN (subquery) with IN (literals)
- Cross-shard DELETE/UPDATE tests disabled pending subquery materialization
at planning time (infrastructure is in place)
Gap 3 - INSERT...SELECT distributed:
- DmlPlanBuilder stores SELECT AST for INSERT...SELECT
- DistributedPlanner detects INSERT...SELECT and executes the SELECT
distributedly, groups result rows by shard key, generates per-shard
INSERT statements with literal VALUES
Tests: 3 new correlated subquery tests, 1 INSERT...SELECT test passing.
2 cross-shard DML tests disabled (infrastructure ready, needs debugging).
0 commit comments