chore: remove sql feature and sqlparser dependency from DataFusion#1437
Conversation
Co-authored-by: linhr <5601366+linhr@users.noreply.github.com>
sql feature and sqlparser dependency from DataFusion
|
@copilot Please investigate why |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #1437 +/- ##
==========================================
- Coverage 75.12% 74.79% -0.34%
==========================================
Files 870 877 +7
Lines 114384 122097 +7713
==========================================
+ Hits 85936 91321 +5385
- Misses 28448 30776 +2328
*This pull request uses carry forward flags. Click here to find out more.
... and 97 files with indirect coverage changes 🚀 New features to boost your workflow:
|
…and sqlparser from compiled deps Co-authored-by: linhr <5601366+linhr@users.noreply.github.com>
They still appeared because avro = [
"datafusion-common/avro",
"datafusion-datasource-avro",
"unicode_expressions",
"datafusion-sql/recursive_protection",
"datafusion-sql", # <-- this pulled in datafusion-sql
]Fixed in facc882 by removing Note: |
|
@copilot Merge from origin/main branch and resolve the conflicts. Then follow apache/datafusion#20625 that mentioned
This issue has been handled in the DataFusion 53 version so now again try to remove the sql feature and |
Co-authored-by: lonless9 <167735979+lonless9@users.noreply.github.com> Agent-Logs-Url: https://github.com/lakehq/sail/sessions/619d7a07-cf3f-4a5e-88b8-90875f162854
Done in d5ab5c5. Merged from With DataFusion 53,
|
|
@copilot Add back the |
…ro import paths Agent-Logs-Url: https://github.com/lakehq/sail/sessions/4e726576-28c6-40af-88a9-71b57fe24332 Co-authored-by: linhr <5601366+linhr@users.noreply.github.com>
Done in d9c1921. Added |
Removes the
sqlfeature (and its transitivedatafusion-sql/sqlparserdependencies) from our DataFusion integration, updating to DataFusion 53.0.0 which fixes therecursive_protectionfeature so it no longer activatessql.Cargo.tomldatafusion:default-features = false, explicitly list all needed features includingavroandrecursive_protection(both now safe in v53 —avrono longer pullsdatafusion-sql, andrecursive_protectionno longer activatessql) — omittingsqldatafusion-expr,datafusion-functions-nested:default-features = falseto prevent theirsqldefault from re-enablingdatafusion-expr/sqlvia feature unificationrecursive_protectionentries for individual crates (datafusion-common,datafusion-expr,datafusion-physical-expr,datafusion-optimizer,datafusion-physical-optimizer) —datafusion/recursive_protectionnow handles all sub-crates correctly in v53wildcard.rsReplace
sqlparser::asttypes andexpr_to_sqlwith the non-sql equivalents fromdatafusion_expr::expr:A
make_identhelper reduces repetition when constructingexpr::Identwith defaultquote_style/spanvalues.error.rsRemove the
DataFusionError::SQLmatch arm — that variant is gated behinddatafusion-common'ssqlfeature, which is now disabled.avro/mod.rsandcodec.rsUse the original import paths via
datafusionre-exports (datafusion::datasource::file_format::avro::AvroFormatanddatafusion::datasource::physical_plan::AvroSource). In DataFusion 53, theavrofeature is clean and no longer pulls indatafusion-sql, so no directdatafusion-datasource-avrodependency is needed in individual crates.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.