-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary tables #2962
Merged
Merged
Temporary tables #2962
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b09864b
First version of InMemoryQueueCursor.
hatyo 953e72c
Add hierarchy test.
hatyo 7e7c962
Make InMemoryQueueCursor operator sychronously on QueryResults.
hatyo 298a82e
Checkpoint.
hatyo 0ef6941
WIP.
hatyo de78f5c
Merge remote-tracking branch 'upstream/main' into recursive-cte
hatyo 13ae373
table queue implementation.
hatyo 3240d19
Add tests.
hatyo ddaae8a
refactoring.
hatyo fb9609d
refactoring, addressing comments.
hatyo bfe4928
refactoring, addressing further comments.
hatyo 93d4f17
refactoring, addressing further comments.
hatyo 040216d
refactoring, addressing comments.
hatyo d74bf0e
Merge remote-tracking branch 'upstream/main' into table-queues
hatyo 12fec0c
fix checkstyle violations.
hatyo 90bd21a
address further comments.
hatyo 53605f7
Merge remote-tracking branch 'upstream/main' into table-queues
hatyo 97337ec
remove extra blank lines.
hatyo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that
Internal
is too short for what is now a fairly wide variety of special bindings. ButBindingType
suggests to me that all bindings would be of one of these types, when these are still just the special ones and normally named parameters aren't one of these types. Also, the serialized enum isPBindingKind
. It seems that perhaps a longer consistent name is needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only bindings that do not have an
Internal
are named bindings coming from the heuristic planner. I think everything in the cascades planner actually has a correspondingInternal
(mostlyCORRELATION
orCONSTANT
so far).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the newly added enum value
TABLE_QUEUE
effectively reverting the change, but I renamedInternal
toBindingKind
(notBindingType
) to align with the corresponding PB definition inrecord_query_plan.proto
:fdb-record-layer/fdb-record-layer-core/src/main/proto/record_query_plan.proto
Line 999 in 4ccb4a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although one might prefer to build a
ConstantObjectValue
and/orCONSTANT
binding, from some higher level query data structure, it works today to callCascadesPlanner
with aRecordQuery
containing aParameterComparison
and run that plan with anEvaluationContext
with aBindings
with a corresponding named parameter. In other words, an external binding kind. These untyped / neutral bindings are not specific to the heuristic planner.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the name back to how it was before. It looks like introducing an
External
binding could cause wider code changes that are outside the scope of this PR. Let's discuss this as a follow up item.