-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
65375: sql: add support for expression-based indexes with CREATE INDEX r=mgartner a=mgartner #### sql: add experimental_enable_expression_based_indexes session setting This commit adds a session setting that will eventually enable users to create expression-based indexes. The setting will be removed when expression-based indexes are fully supported. Release note: None #### sql: add support for expression-based indexes with CREATE INDEX This commit adds basic support for creating expression-based indexes with a `CREATE INDEX` statement. An expression-based index is syntactic sugar for an index on a virtual computed column. Creating an expression-based index will automatically created a hidden virtual column with the given expression. If a virtual column with the given expression already exists, that column is used rather than creating a new one. Future work includes supporting expression-based indexes in `CREATE TABLE` and making error messages related to these indexes more user-friendly. There is no release note because expression-based indexes are not enabled by default. They require the `experimental_enable_expression_based_indexes` session setting until they are fully supported. Release note: None 65524: sql: clear right rows correctly during apply-join r=mgartner a=mgartner This commit fixes a bug introduced in #63900 which causes execution of semi and anti apply-joins to panic. For a each row on the left side of the apply-join, rows are fetched for the right side of the join and added to an iterator. For semi and anti apply-joins, the right rows are only consumed until a match is found. These right rows were not being cleared for the next successive left row. This caused a panic when the apply-join predicate would be applied on a `nil` left row during the next call to `applyJoinNode.Next`; the next left row is only fetched if the right row iterator has been cleared. Fixes #65040 There is no release note because this bug is only present in 21.2.0-alpha, which has not yet been released. Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
30 changed files
with
486 additions
and
56 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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.