shyjsarah opened a new pull request, #1084: URL: https://github.com/apache/paimon-rust/pull/1084
## Summary Expose DataFusion `SQLOptions` through the Python `SQLContext` binding so Python callers can apply SQL execution restrictions while retaining Paimon SQL routing. This builds on the Rust API added in #996. The existing `SQLContext.sql` behavior remains unchanged. ## Changes - Add a Python `SQLOptions` class with DataFusion-compatible builder methods for DDL, DML, and statement controls. - Add `SQLContext.sql_with_options(sql, options)`. - Reuse the existing RecordBatch-to-PyArrow compatibility conversion for both SQL entry points. - Add type stubs and Python tests for each supported option. ## Testing - [x] `uv run --no-sync pytest tests/test_datafusion.py -q -k sql_with_options` - [x] `uv run --no-sync cargo check --locked -p pypaimon_rust` - [x] `cargo fmt --all -- --check` - [x] `uv run --no-sync cargo clippy --locked -p paimon-datafusion -p pypaimon_rust --all-targets -- -D warnings` -- 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]
