jackwener commented on code in PR #4465:
URL: https://github.com/apache/arrow-datafusion/pull/4465#discussion_r1104003503


##########
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:
   One extra column is cause by `aggr=[[COUNT(Int64(1))]]`.
   When aggr don't use any column, pushdown_projection will push first column 
of child schema.



-- 
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]

Reply via email to