liukun4515 commented on pull request #2026:
URL:
https://github.com/apache/arrow-datafusion/pull/2026#issuecomment-1070196247
> # Which issue does this PR close?
> Closes #2016 .
>
> ```sql
> explain select c1, c2 from test where c3 = true and c2 = 0.000001;
> ```
>
> Before
>
> ```sql
>
+---------------+-------------------------------------------------------------------------------------------------------------------------------------+
> | plan_type | plan
|
>
+---------------+-------------------------------------------------------------------------------------------------------------------------------------+
> | logical_plan | Projection: #test.c1, #test.c2
|
> | | Filter: #test.c3
|
> | | Filter: #test.c2 = Float64(0.000001)
|
> | | TableScan: test projection=Some([0, 1, 2]),
filters=[#test.c3, #test.c2 = Float64(0.000001)]
|
> | physical_plan | ProjectionExec: expr=[c1@0 as c1, c2@1 as c2]
|
> | | CoalesceBatchesExec: target_batch_size=4096
|
> | | FilterExec: c3@2
|
> | | CoalesceBatchesExec: target_batch_size=4096
|
> | | FilterExec: c2@1 = 0.000001
|
> | | RepartitionExec:
partitioning=RoundRobinBatch(8)
|
> | | CsvExec:
files=[/home/jakevin/code/arrow-datafusion/datafusion/tests/aggregate_simple.csv],
has_header=true, limit=None |
> | |
|
>
+---------------+-------------------------------------------------------------------------------------------------------------------------------------+
> ```
>
> After
>
> ```sql
>
+---------------+---------------------------------------------------------------------------------------------------------------------------------+
> | plan_type | plan
|
>
+---------------+---------------------------------------------------------------------------------------------------------------------------------+
> | logical_plan | Projection: #test.c1, #test.c2
|
> | | Filter: #test.c3 AND #test.c2 = Float64(0.000001)
|
> | | TableScan: test projection=Some([0, 1, 2]),
filters=[#test.c3, #test.c2 = Float64(0.000001)]
|
> | physical_plan | ProjectionExec: expr=[c1@0 as c1, c2@1 as c2]
|
> | | CoalesceBatchesExec: target_batch_size=4096
|
> | | FilterExec: c3@2 AND c2@1 = 0.000001
|
> | | RepartitionExec: partitioning=RoundRobinBatch(8)
|
> | | CsvExec:
files=[/home/jakevin/code/arrow-datafusion/datafusion/tests/aggregate_simple.csv],
has_header=true, limit=None |
> | |
|
>
+---------------+---------------------------------------------------------------------------------------------------------------------------------+
> ```
>
> # Rationale for this change
> merge adjacent filter
>
> # Are there any user-facing changes?
> None
Could you please provide this schema for this table `test`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]