-
Notifications
You must be signed in to change notification settings - Fork 2k
Run the examples in the new format #18946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alamb
merged 14 commits into
apache:main
from
cj-zhukov:cj-zhukov/run-examples-in-the-new-format
Dec 7, 2025
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
50f9345
Run the examples in the new format
60c2a9e
Fix issues causing GitHub checks to fail
ec321cc
Trigger CI
ec77fba
fix typo in custom_data_source and update rust_example.sh wih passing…
14a91c1
fix regexp example using content from regex.csv file
ca8300f
fix type in udf examples and use csv data from cars.csv file
a4cac2f
Track generated file so rustfmt matches CI
5110e4c
move logic to run()
f8c18f6
cleanup test folders in script and use temporary directory
33f17d4
Merge branch 'main' into cj-zhukov/run-examples-in-the-new-format
alamb db30d51
Merge branch 'main' into cj-zhukov/run-examples-in-the-new-format
alamb 2f5c63f
remove cleanup test folders in script
383993a
Fix example
alamb 2c98086
Merge remote-tracking branch 'apache/main' into cj-zhukov/run-example…
alamb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix typo in custom_data_source and update rust_example.sh wih passing…
… correct arg
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I ran this script twice, I got an error the second time around:
The second run made this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the issue is that some of the examples leave files around:
andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion2$ find datafusion-examples/examples/datafusion-examples datafusion-examples/examples/datafusion-examples datafusion-examples/examples/datafusion-examples/test_json datafusion-examples/examples/datafusion-examples/test_json/lQqU6IGDpwHJyGQB_0.json datafusion-examples/examples/datafusion-examples/test_json/KKsELYFJ4st3GUOa_0.json datafusion-examples/examples/datafusion-examples/test_csv datafusion-examples/examples/datafusion-examples/test_csv/9Alj5dF7w72vLpp0_0.csv.gz datafusion-examples/examples/datafusion-examples/test_csv/4Bh8tCQllXXE43A9_0.csv.gz datafusion-examples/examples/datafusion-examples/test_table datafusion-examples/examples/datafusion-examples/test_table/Y2CVyUXOXRPhDhFA_0.parquet datafusion-examples/examples/datafusion-examples/test_table/2nskzCtDZnEJR851_0.parquet datafusion-examples/examples/datafusion-examples/test_parquet datafusion-examples/examples/datafusion-examples/test_parquet/4CIKeX6U9Ik1YYgY_0.parquet datafusion-examples/examples/datafusion-examples/test_parquet/ooUJiB7QMqY0BRdN_0.parquetMaybe we could change the examples to use a temporary directory or else have this script clean up before running
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good point! Let's do it.