-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
50252: opt: change GeoLookupJoin to InvertedLookupJoin r=rytaft a=rytaft This commit converts the `GeoLookupJoin` operator in the optimizer into a more general operator, `InvertedLookupJoin`. This new operator maps directly to the `invertedJoiner` DistSQL processor. In the future, the `InvertedLookupJoin` operator can also be used for lookup joins on inverted JSON and array indexes in addition to geospatial indexes. This commit also adds a new structure, `geoDatumToInvertedExpr`, which implements the `DatumToInvertedExpr` interface for geospatial data types. This will enable the optimized plan to be easily converted to a DistSQL plan for execution by the `invertedJoiner`. Release note: None 50450: sql: add support for hash and merge joins in the new factory r=yuzefovich a=yuzefovich **sql: minor cleanup of joiner planning** `joinNode.mergeJoinOrdering` is now set to non-zero length by the optimizer only when we can use a merge join (meaning that number of equality columns is non-zero and equals the length of the ordering we have). This allows us to slightly simplify the setup up of the merge joiners. Additionally, this commit switching to using `[]exec.NodeColumnOrdinal` instead of `int` for equality columns in `joinPredicate` which allows us to remove one conversion step when planning hash joiners. Also we introduce a small helper that will be reused by the follow-up work. Release note: None **sql: add support for hash and merge joins in the new factory** This commit adds implementation of `ConstructHashJoin` and `ConstructMergeJoin` in the new factory by mostly refactoring and reusing already existing code in the physical planner. Notably, interleaved joins are not supported yet. Fixes: #50291. Addresses: #47473. Release note: None 50646: build: update instructions for updating dependencies r=jbowens a=otan Release note: None Co-authored-by: Rebecca Taft <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Oliver Tan <[email protected]>
- Loading branch information
Showing
36 changed files
with
978 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.