-
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.
33524: opt: Add support for DELETE operator r=andy-kimball a=andy-kimball This commit adds support for the DELETE operator to the cost-based optimizer. The DELETE operator is similar to the UPDATE operator. It fetches existing values from the deletion table using the clauses specified in the DELETE statement: CREATE TABLE abc (a INT PRIMARY KEY, b INT, c INT) DELETE FROM abc WHERE b=10 Then an input expression equivalent to this would be built: SELECT a, b, c FROM abc WHERE b=10 At runtime, the Delete execution operator will iterate over each input row and use its key to delete each row in turn. Co-authored-by: Andrew Kimball <[email protected]>
- Loading branch information
Showing
38 changed files
with
2,348 additions
and
610 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
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.