Skip to content

fix: remove unreachable datafusion SQL methods from clippy.toml#1626

Merged
lonless9 merged 1 commit into
mainfrom
copilot/adjust-clippy-rule
Apr 9, 2026
Merged

fix: remove unreachable datafusion SQL methods from clippy.toml#1626
lonless9 merged 1 commit into
mainfrom
copilot/adjust-clippy-rule

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

Summary

As a follow-up of #1437, which removed the datafusion sql feature, 10 entries in clippy.toml's disallowed-methods list reference SQL-related datafusion methods that are no longer reachable. This causes clippy to emit 10 warnings like:

warning: `datafusion::execution::context::SessionContext::sql` does not refer to a reachable function

This PR removes those 10 unreachable entries from clippy.toml.

Changes

Removed the following entries from disallowed-methods in clippy.toml (they are part of the sql feature that was disabled):

  • SessionContext::parse_sql_expr
  • SessionContext::sql
  • SessionContext::sql_with_options
  • SessionState::create_logical_expr
  • SessionState::create_logical_plan
  • SessionState::resolve_table_references
  • SessionState::sql_to_expr
  • SessionState::sql_to_expr_with_alias
  • SessionState::sql_to_statement
  • SessionState::statement_to_plan

Fixes: https://github.com/lakehq/sail/actions/runs/24136921480/job/70427432354

Agent-Logs-Url: https://github.com/lakehq/sail/sessions/99c6ec6e-0b0d-4864-9468-9a1ac27598a3

Co-authored-by: lonless9 <167735979+lonless9@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main    #1626      +/-   ##
==========================================
- Coverage   75.61%   75.61%   -0.01%     
==========================================
  Files         880      880              
  Lines      118699   118699              
==========================================
- Hits        89755    89753       -2     
- Misses      28944    28946       +2     
Flag Coverage Δ *Carryforward flag
ibis-tests 18.86% <ø> (ø)
python-unit-tests 57.01% <ø> (-0.01%) ⬇️
rust-slow-tests 43.48% <ø> (ø) Carriedforward from e6f8041
rust-unit-tests 38.24% <ø> (-1.05%) ⬇️
spark-tests 33.37% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.
see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@linhr linhr marked this pull request as ready for review April 9, 2026 02:59
@lonless9 lonless9 merged commit fac7f56 into main Apr 9, 2026
21 checks passed
@lonless9 lonless9 deleted the copilot/adjust-clippy-rule branch April 9, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants