Skip to content

feat: allow TableScan without projection#6032

Merged
yjshen merged 4 commits intoapache:mainfrom
waynexia:table-scan-without-proj
Apr 19, 2023
Merged

feat: allow TableScan without projection#6032
yjshen merged 4 commits intoapache:mainfrom
waynexia:table-scan-without-proj

Conversation

@waynexia
Copy link
Copy Markdown
Member

@waynexia waynexia commented Apr 17, 2023

Which issue does this PR close?

Related to GreptimeTeam/greptimedb#1396

Rationale for this change

Allow table scan without projection. It should be a constrain as the projection field in TableScan plan is optional:
https://github.com/apache/arrow-datafusion/blob/3ad7734a7e5b1844b02f1374d0dc1c441bef216d/datafusion/expr/src/logical_plan/plan.rs#L1396-L1403

What changes are included in this PR?

Don't throw error when there is no projection in TableScan.

Are these changes tested?

Yes

Are there any user-facing changes?

Yes but not breaking

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actions github-actions bot added the substrait Changes to the substrait crate label Apr 17, 2023
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia
Copy link
Copy Markdown
Member Author

cc @andygrove and @nseekhao

Comment thread datafusion/substrait/tests/serialize.rs Outdated
Co-authored-by: jakevin <jakevingoo@gmail.com>
@yjshen yjshen merged commit 5159e61 into apache:main Apr 19, 2023
@waynexia waynexia deleted the table-scan-without-proj branch April 19, 2023 02:39
@waynexia
Copy link
Copy Markdown
Member Author

Thanks for reviewing

@waynexia waynexia restored the table-scan-without-proj branch April 20, 2023 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants