adriangb commented on PR #18627:
URL: https://github.com/apache/datafusion/pull/18627#issuecomment-3517686928
This is the tracer bullet I've been using to guide this change:
```
use arrow::util::pretty::pretty_format_batches;
use arrow_schema::DataType;
use datafusion::{
common::Result,
prelude::{ParquetReadOptions, SessionContext},
};
#[tokio::main]
async fn main() -> Result<()> {
let ctx = SessionContext::new();
let df = ctx
.read_parquet(
"data/",
ParquetReadOptions::default()
.table_partition_cols(vec![("b".to_string(),
DataType::UInt32)]),
)
.await?;
let res = df
.select_exprs(&["b", "a", "a = b", "a * 2"])?
.collect()
.await?;
println!("Result:\n{}", pretty_format_batches(&res)?);
Ok(())
}
```
I plan to come back now, do a review and cleanup, handle the protobuf stuff
(I know that needs to be changed) and then fix all the rest of the tests.
--
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]