Skip to content

ci: Ensure only the main datafusion crate is used in the examples - #25777

Merged
alamb merged 6 commits into
apache:mainfrom
nuno-faria:examples_datafusion_crate
Sep 28, 2026
Merged

alamb merged 6 commits into
apache:mainfrom
nuno-faria:examples_datafusion_crate

Conversation

@nuno-faria

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

See the issue and #14305.

What changes are included in this PR?

  • New CI job that checks if datafusion-examples uses subcrates directly which are already exported by the main datafusion crate.
  • Updated the examples to only use the main datafusion crate.

What is the testing strategy for this PR?

This PR.

Are there any user-facing changes?

Examples now do not use subcrates directly without needing to.

@github-actions github-actions Bot added the development-process Related to development process of DataFusion label Sep 26, 2026
@codecov-commenter

codecov-commenter commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.51%. Comparing base (6a792c6) to head (204d51c).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25777      +/-   ##
==========================================
+ Coverage   82.49%   82.51%   +0.01%     
==========================================
  Files        1140     1141       +1     
  Lines      438555   439780    +1225     
  Branches   438555   439780    +1225     
==========================================
+ Hits       361803   362885    +1082     
- Misses      54880    54952      +72     
- Partials    21872    21943      +71     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@nuno-faria

Copy link
Copy Markdown
Contributor Author

Here's what happens when datafusion-sql is added to the examples: https://github.com/apache/datafusion/actions/runs/36250347391/job/108427089537?pr=25777
image

@nuno-faria
nuno-faria marked this pull request as ready for review September 26, 2026 16:07
@nuno-faria
nuno-faria requested a review from alamb September 26, 2026 16:07

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me. Thank you @nuno-faria

Do we also need to add this to the list of required checks here:

contexts:

?

@nuno-faria

Copy link
Copy Markdown
Contributor Author

Thanks @alamb for the review.

Do we also need to add this to the list of required checks here:

contexts:

?

Added.

@alamb
alamb added this pull request to the merge queue Sep 28, 2026
Merged via the queue into apache:main with commit 991fd23 Sep 28, 2026
43 checks passed
@nuno-faria
nuno-faria deleted the examples_datafusion_crate branch September 28, 2026 18:21
Omega359 pushed a commit to Omega359/arrow-datafusion that referenced this pull request Oct 11, 2026
…ache#25777)

## Which issue does this PR close?

- Closes apache#25578.

## Rationale for this change

See the issue and apache#14305.

## What changes are included in this PR?

- New CI job that checks if `datafusion-examples` uses subcrates
directly which are already exported by the main `datafusion` crate.
- Updated the examples to only use the main `datafusion` crate.

## What is the testing strategy for this PR?

This PR.

## Are there any user-facing changes?

Examples now do not use subcrates directly without needing to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of DataFusion v56.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

datafusion-examples should only use the datafusion crate

3 participants