-
Notifications
You must be signed in to change notification settings - Fork 71
Cost based optimization #226
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6e45ea7
Refactoring of the planner logic
nils-braun 429acc5
Adjust the python implementations to follow the new conventions
nils-braun 51e267b
Fix a bug in the column name creation and in the window node. While d…
nils-braun 07a539f
Implement the missing sample node
nils-braun 35622da
Calcite is now creating a new function: /int. Implement it
nils-braun e3dce64
Additional optimization rules (probably not needed)
nils-braun 49d256e
Expaning will lead to RexSubQueries, which are harder to handle and n…
nils-braun cefcebe
Documentation
nils-braun 417c26f
Allow the user to pass in row-count statistics on the tables, which a…
nils-braun 672d063
Merge remote-tracking branch 'origin/main' into feature/cost-based-op…
nils-braun 73ee12f
List.of is a Java 11 feature -> replace with Arrays.asList to stay ja…
nils-braun 4e27798
Bring the coverage up again
nils-braun 63abd27
Merge remote-tracking branch 'upstream/main' into feature/cost-based-…
charlesbluca 395d7fa
Merge remote-tracking branch 'upstream/main' into feature/cost-based-…
charlesbluca 20e7891
Run pre-commit hooks
charlesbluca cca757d
Remove formatted brackets causing explain failures
charlesbluca 266b26f
Merge remote-tracking branch 'upstream/main' into feature/cost-based-…
charlesbluca 8f94429
apply changes from Jeremy
galipremsagar 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,9 @@ | ||
| from ._version import get_version | ||
| from .cmd import cmd_loop | ||
| from .context import Context | ||
| from .datacontainer import Statistics | ||
| from .server.app import run_server | ||
|
|
||
| __version__ = get_version() | ||
|
|
||
| __all__ = [__version__, cmd_loop, Context, run_server, Statistics] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,25 @@ | ||
| from .aggregate import LogicalAggregatePlugin | ||
| from .filter import LogicalFilterPlugin | ||
| from .join import LogicalJoinPlugin | ||
| from .project import LogicalProjectPlugin | ||
| from .aggregate import DaskAggregatePlugin | ||
| from .filter import DaskFilterPlugin | ||
| from .join import DaskJoinPlugin | ||
| from .limit import DaskLimitPlugin | ||
| from .project import DaskProjectPlugin | ||
| from .sample import SamplePlugin | ||
| from .sort import LogicalSortPlugin | ||
| from .table_scan import LogicalTableScanPlugin | ||
| from .union import LogicalUnionPlugin | ||
| from .values import LogicalValuesPlugin | ||
| from .window import LogicalWindowPlugin | ||
| from .sort import DaskSortPlugin | ||
| from .table_scan import DaskTableScanPlugin | ||
| from .union import DaskUnionPlugin | ||
| from .values import DaskValuesPlugin | ||
| from .window import DaskWindowPlugin | ||
|
|
||
| __all__ = [ | ||
| LogicalAggregatePlugin, | ||
| LogicalFilterPlugin, | ||
| LogicalJoinPlugin, | ||
| LogicalProjectPlugin, | ||
| LogicalSortPlugin, | ||
| LogicalTableScanPlugin, | ||
| LogicalUnionPlugin, | ||
| LogicalValuesPlugin, | ||
| LogicalWindowPlugin, | ||
| DaskAggregatePlugin, | ||
| DaskFilterPlugin, | ||
| DaskJoinPlugin, | ||
| DaskLimitPlugin, | ||
| DaskProjectPlugin, | ||
| DaskSortPlugin, | ||
| DaskTableScanPlugin, | ||
| DaskUnionPlugin, | ||
| DaskValuesPlugin, | ||
| DaskWindowPlugin, | ||
| SamplePlugin, | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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.
This was the only non-java change I made. Since this Java pattern uses a builder previously if multiple schemas were present only the last schema instance would have been saved.