-
Notifications
You must be signed in to change notification settings - Fork 574
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
fix(batch): ensure BatchSeqScan
runs on compute node
#7240
Merged
Merged
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
43e1e34
enforce exchange above table scan for local mode
kwannoel 6845473
add e2e
kwannoel 5431da8
clean
kwannoel 8d02d19
refactor
kwannoel 410fe92
fix
kwannoel 97079e6
fix
kwannoel 997dd2e
fix sys tables
kwannoel 3f4a489
clean
kwannoel e10cfeb
fix
kwannoel 92c1d11
fix
kwannoel 7a5f3e4
push filter and topN to compute node
kwannoel 4a1ad2c
fix order
kwannoel 01ed139
update planner-test
kwannoel 70b9b27
Merge branch 'main' into kwannoel/batch
kwannoel 4b1e744
fix
kwannoel 41aa016
fix
kwannoel 0eace3e
fix
kwannoel 44aa03b
Merge remote-tracking branch 'origin/main' into kwannoel/batch
kwannoel 363b486
revert `enforce_exchange_above_table_scan`
kwannoel 5b56679
force exchange on `BatchSeqScan`
kwannoel fbea0cc
fix
kwannoel 7e8c470
fix review
kwannoel 4642f6a
fix table scan in distributed mode
kwannoel a68559f
fmt
kwannoel 1652253
add planner test for distributed mode
kwannoel 9636785
Merge branch 'main' into kwannoel/batch
mergify[bot] 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# https://github.com/risingwavelabs/risingwave/issues/7115 | ||
|
||
statement ok | ||
create table t (id int); | ||
|
||
statement ok | ||
create materialized view v as select count(*) cnt from t; | ||
|
||
statement ok | ||
SET QUERY_MODE TO local; | ||
|
||
query I | ||
select * from v join (select count(*) from t) T; | ||
---- | ||
|
||
# FIXME(Noel): Distributed mode not debugged yet. | ||
# statement ok | ||
# SET query_mode TO distributed; | ||
# | ||
# query I | ||
# select * from v join (select count(*) from t) T; | ||
# ---- | ||
|
||
statement ok | ||
DROP MATERIALIZED VIEW v; | ||
|
||
statement ok | ||
DROP TABLE t; |
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
13 changes: 13 additions & 0 deletions
13
src/frontend/planner_test/tests/testdata/local_execution_mode.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file is automatically generated. See `src/frontend/planner_test/README.md` for more information. | ||
- id: create_tables | ||
sql: | | ||
create table t (id int); | ||
create materialized view v as select count(*) cnt from t; | ||
select * from v join (select count(*) from t) T; | ||
batch_local_plan: | | ||
BatchNestedLoopJoin { type: Inner, predicate: true, output: all } | ||
├─BatchExchange { order: [], dist: Single } | ||
| └─BatchScan { table: v, columns: [v.cnt], distribution: SomeShard } | ||
└─BatchSimpleAgg { aggs: [count] } | ||
└─BatchExchange { order: [], dist: Single } | ||
└─BatchScan { table: t, columns: [], distribution: SomeShard } |
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
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.
Just rename the suffix of this file to
.slt.part
, and it will run in both local mode and distributed mode.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.
Haven't fixed for
distributed_mode
yet unfortunately. That's why use this as workaround for now. Onlylocal_mode
is fixed.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.
Oh just got what you mean after thinking about it. Shall change it.
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.
Please add some data to verify it.