Skip to content

What's the difference for the projection being Some(vec![]) and None? #13239

Closed Answered by jonahgao
niebayes asked this question in Q&A
Discussion options

You must be logged in to vote

None means that it returns all columns of the table; in other words, no projection has been pushed down.

vec![] means it returns no columns and provides only the number of rows, which is typically the case like count(*).

> explain select count(*) from test;
+---------------+---------------------------------------------------------------+
| plan_type     | plan                                                          |
+---------------+---------------------------------------------------------------+
| logical_plan  | Aggregate: groupBy=[[]], aggr=[[count(Int64(1)) AS count(*)]] |
|               |   TableScan: test projection=[]                               |

So, should I follow datafusi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@niebayes
Comment options

Answer selected by niebayes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants