pg999 opened a new issue, #18578: URL: https://github.com/apache/datafusion/issues/18578
### Describe the bug It seems that literals and any built-in/custom udaf are not working on custom datasource. ### To Reproduce Use this as your custom datasource https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/custom_datasource.rs and try this ``` ctx.register_table("test", Arc::new(db.clone()))?; let x = ctx.sql("select * from test").await?.collect().await?; arrow::util::pretty::print_batches(&x)?; ``` which will work, but this 👇 ``` ctx.register_table("test", Arc::new(db.clone()))?; let x = ctx.sql("select 1 a from test").await?.collect().await?; arrow::util::pretty::print_batches(&x)?; ``` or this 👇 ``` ctx.register_table("test", Arc::new(db.clone()))?; let x = ctx.sql("select COUNT(a) from test").await?.collect().await?; arrow::util::pretty::print_batches(&x)?; ``` fails... ### Expected behavior _No response_ ### 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]
