jackwener commented on code in PR #4465:
URL: https://github.com/apache/arrow-datafusion/pull/4465#discussion_r1118027510
##########
datafusion/optimizer/tests/integration-test.rs:
##########
@@ -195,9 +195,10 @@ fn between_date64_plus_interval() -> Result<()> {
WHERE col_date64 between '1998-03-18T00:00:00' AND cast('1998-03-18' as
date) + INTERVAL '90 days'";
let plan = test_sql(sql)?;
let expected =
- "Projection: COUNT(Int64(1))\n Aggregate: groupBy=[[]],
aggr=[[COUNT(Int64(1))]]\
+ "Aggregate: groupBy=[[]], aggr=[[COUNT(Int64(1))]]\
+ \n Projection: test.col_int32\
\n Filter: test.col_date64 >= Date64(\"890179200000\") AND
test.col_date64 <= Date64(\"897955200000\")\
- \n TableScan: test projection=[col_date64]";
+ \n TableScan: test projection=[col_int32, col_date64]";
Review Comment:
> would it be possible to not push a column down if there was already a
column that was scanned (e.g. in this case use col_date64?)
I have resolved it !🚀
--
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]