jackwener commented on pull request #2084:
URL: 
https://github.com/apache/arrow-datafusion/pull/2084#issuecomment-1079736693


   Now I rewrite the logical plan. and `println!` log in terminal.
   
   I think it's ok. but there will be error.
   
   ```sql
   Projection: #MAX(#test.c1) AS MAX(DISTINCT test.c1) 
   DFSchema { fields: [DFField { qualifier: None, field: Field { name: 
"MAX(DISTINCT test.c1)", data_type: Float32, nullable: true, dict_id: 0, 
dict_is_ordered: false, metadata: None } }], metadata: {} }
   Expr[MAX(#test.c1) AS MAX(DISTINCT test.c1)]
   
        Aggregate: groupBy=[[]], aggr=[[MAX(#test.c1)]]
        DFSchema { fields: [DFField { qualifier: None, field: Field { name: 
"MAX(test.c1)", data_type: Float32, nullable: true, dict_id: 0, 
dict_is_ordered: false, metadata: None } }], metadata: {} }
        Expr[MAX(#test.c1)]
   
                TableScan: test projection=Some([0])
                DFSchema { fields: [DFField { qualifier: Some("test"), field: 
Field { name: "c1", data_type: Float32, nullable: false, dict_id: 0, 
dict_is_ordered: false, metadata: None } }], metadata: {} }
   ```


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