selvavm opened a new issue #1536:
URL: https://github.com/apache/arrow-datafusion/issues/1536
**Describe the bug**
When I want to generate a dataframe over
**To Reproduce**
let file_format =
ParquetFormat::default().with_enable_pruning(true);
let listing_options = ListingOptions {
file_extension: ".parquet".to_owned(),
format: Arc::new(file_format),
table_partition_cols: vec!["country".to_string()],
collect_stat: true,
target_partitions: parquet_file_count,
};
ctx.register_listing_table(
"my_table",
&r#"C:\builds\testdata"#.to_string(),
listing_options,
None,
)
.await;
ctx.table("my_table")
My testdata folder,
testdata
|_ country=france
|_ file1.parquet
|_ country=china
|_ file1.parquet
**Expected behavior**
`ctx.table` should return a dataframe
**Actual behavior**
`thread 'main' panicked at 'called Result::unwrap() on an Err value:
Plan("No table named 'my_table'")'`
**Additional context**
Add any other context about the problem here.
--
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]