l45k commented on issue #9081:
URL:
https://github.com/apache/arrow-datafusion/issues/9081#issuecomment-1920641799
@alamb Thanks for the suggestions. I added the above configuration to my
script
```rust
async fn main() {
let mut session_config = SessionConfig::new();
session_config =
session_config.set_bool("datafusion.execution.parquet.skip_metadata", false);
let ctx = SessionContext::new_with_config(session_config);
println!("Session config {:?}", ctx.copied_config());
let table = ctx.read_parquet("test.parquet",
ParquetReadOptions::default().skip_metadata(false)).await.unwrap();
println!("Schema {:?}", table.schema());
println!("Metadata {:?}", table.schema().metadata());
ctx.register_parquet("t", "test.parquet",
ParquetReadOptions::default().skip_metadata(false)).await.unwrap();
println!("Schema {:?}", ctx.table("t").await.unwrap().schema());
println!("Metadata {:?}",
ctx.table("t").await.unwrap().schema().metadata());
```
and checked that `datafusion.execution.parquet.skip_metadata` sessions
config is set to false. However, I still get the same result without any
metadata.
```
Schema DFSchema { fields: [DFField { qualifier: Some(Bare { table: "?table?"
}), field: Field { name: "col1", data_type: Int64, nullable: true, dict_id: 0,
dict_is_ordered: false, metadata: {} } }], metadata: {},
functional_dependencies: FunctionalDependencies { deps: [] } }
Metadata {}
Schema DFSchema { fields: [DFField { qualifier: Some(Bare { table: "t" }),
field: Field { name: "col1", data_type: Int64, nullable: true, dict_id: 0,
dict_is_ordered: false, metadata: {} } }], metadata: {},
functional_dependencies: FunctionalDependencies { deps: [] } }
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]