ShashidharM0118 opened a new pull request, #19397:
URL: https://github.com/apache/datafusion/pull/19397
## Which issue does this PR close?
Closes #19393
## Rationale for this change
The upgrade guide contained incorrect API examples that didn't match the
current implementation
## What changes are included in this PR?
- Updated `ParquetExecBuilder` migration example in the upgrade guide to use
correct API:
- Changed `ParquetSource::new(parquet_options)` to
`ParquetSource::new(table_schema)` with proper `TableSchema` creation
- Changed `FileScanConfig::new(url, file_schema, source)` to
`FileScanConfigBuilder::new(url, source)` (removed schema parameter)
- Removed non-existent `with_table_partition_cols()` method call
- Updated `with_projection()` to `with_projection_indices()` with proper
error handling
- Fixed final execution plan creation to use
`DataSourceExec::from_data_source()`
## Are these changes tested?
## Are there any user-facing changes?
No
--
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]