sql: figure out how to handle subqueries by distSQLSpecExecFactory #51095
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-queries
SQL Queries Team
This question comes from the fact that when we're serializing an expression of the main tree, it might be referencing the results of subqueries' evaluation, but we don't have those during execbuilding with current "single-path over
memo
tree" approach. I see two solutions:memo
traversal to build the remaining parts of the full plan given that we now have results of subqueries' evaluation. Not sure how hard and how breaking of a change this would be.planNode
s in the physical plan?This question came up when I looked into implementing
ConstructBuffer
andConstructScanBuffer
- it seems like we need to have some way of identifying aplanNode
that is wrapped into the physical plan so that we can instantiate anotherplanNode
-to-be-wrapped, possibly in a different "tree" within the whole physical plan. This needs more investigation.Jira issue: CRDB-4072
The text was updated successfully, but these errors were encountered: