docs: add partitioned ClickBench SQL example#23637
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23637 +/- ##
=======================================
Coverage ? 80.65%
=======================================
Files ? 1086
Lines ? 366098
Branches ? 366098
=======================================
Hits ? 295269
Misses ? 53233
Partials ? 17596 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alamb
approved these changes
Jul 16, 2026
| LOCATION 'benchmarks/data/hits.parquet'; | ||
| ``` | ||
|
|
||
| For the partitioned dataset, register the directory and enable |
Contributor
There was a problem hiding this comment.
I tested this locally and it works great
DataFusion CLI v54.0.0
> CREATE EXTERNAL TABLE hits_raw
STORED AS PARQUET
LOCATION 'benchmarks/data/hits_partitioned'
OPTIONS ('binary_as_string' 'true');
0 row(s) fetched.
Elapsed 0.060 seconds.
> CREATE VIEW hits AS
SELECT * EXCEPT ("EventDate"),
CAST(CAST("EventDate" AS INTEGER) AS DATE) AS "EventDate"
FROM hits_raw;
0 row(s) fetched.
Elapsed 0.010 seconds.
> SELECT COUNT(*) FROM hits WHERE "AdvEngineID" <> 0;
+----------+
| count(*) |
+----------+
| 630500 |
+----------+
1 row(s) fetched.
Elapsed 0.030 seconds.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Continuation of #23315
Originally posted by @alamb in #23315 (comment)