Tangeroooo opened a new issue, #12298:
URL: https://github.com/apache/datafusion/issues/12298

   ### Describe the bug
   
   Return an error like below message.
   
   Error in response: DataFusionError("Internal error: Invalid aggregate 
expression 'Column(Column { relation: Some(Bare { table: \"?table?\" }), name: 
\"video_id\" })'.\nThis was likely caused by a bug in DataFusion's code and we 
would welcome that you file an bug report in our issue tracker")
   
   ### To Reproduce
   
   
   
   for record_batch in reader {
           let rb = record_batch?;
       record_batches.push(rb);
   }
   
   let columns = reader.schema().fields().iter().map(|f| {
           col(f.name().clone())
       }).collect::<Vec<_>>();
   
   let group_by_columns = group_by_columns_names
           .iter()
           .map(|name: &String| col(name))
           .collect::<Vec<_>>();
   
   let ctx = SessionContext::new();
   let df = ctx.read_batches(record_batches)?;
   
   // select * from tab group by col1, col2;
   df.aggregate(group_by_columns, columns)?.collect().await?
   
   ### Expected behavior
   
   Run group by without aggregation function.
   
   ### Additional context
   
   _No response_


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to