Skip to content

Commit 64526b6

Browse files
authored
Merge branch 'main' into implement_groups_accumulator_count_distinct_primitive_types
2 parents b9dcf85 + cc4717a commit 64526b6

131 files changed

Lines changed: 5472 additions & 3257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
- name: Run audit check
4949
# Note: you can ignore specific RUSTSEC issues using the `--ignore` flag ,for example:
5050
# run: cargo audit --ignore RUSTSEC-2026-0001
51-
run: cargo audit --ignore RUSTSEC-2024-0014
51+
run: cargo audit

Cargo.lock

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmarks/bench.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ run_tpch() {
677677
echo "Running tpch benchmark..."
678678

679679
FORMAT=$2
680-
debug_run $CARGO_COMMAND --bin dfbench -- tpch --iterations 5 --path "${TPCH_DIR}" --prefer_hash_join "${PREFER_HASH_JOIN}" --format ${FORMAT} -o "${RESULTS_FILE}" ${QUERY_ARG} ${LATENCY_ARG}
680+
debug_run $CARGO_COMMAND --bin dfbench -- tpch --iterations 5 --path "${TPCH_DIR}" --scale-factor "${SCALE_FACTOR}" --prefer_hash_join "${PREFER_HASH_JOIN}" --format ${FORMAT} -o "${RESULTS_FILE}" ${QUERY_ARG} ${LATENCY_ARG}
681681
}
682682

683683
# Runs the tpch in memory (needs tpch parquet data)
@@ -693,7 +693,7 @@ run_tpch_mem() {
693693
echo "RESULTS_FILE: ${RESULTS_FILE}"
694694
echo "Running tpch_mem benchmark..."
695695
# -m means in memory
696-
debug_run $CARGO_COMMAND --bin dfbench -- tpch --iterations 5 --path "${TPCH_DIR}" --prefer_hash_join "${PREFER_HASH_JOIN}" -m --format parquet -o "${RESULTS_FILE}" ${QUERY_ARG} ${LATENCY_ARG}
696+
debug_run $CARGO_COMMAND --bin dfbench -- tpch --iterations 5 --path "${TPCH_DIR}" --scale-factor "${SCALE_FACTOR}" --prefer_hash_join "${PREFER_HASH_JOIN}" -m --format parquet -o "${RESULTS_FILE}" ${QUERY_ARG} ${LATENCY_ARG}
697697
}
698698

699699
# Runs the tpcds benchmark
@@ -900,7 +900,7 @@ data_imdb() {
900900
if [ "${DOWNLOADED_SIZE}" != "${expected_size}" ]; then
901901
echo "Error: Download size mismatch"
902902
echo "Expected: ${expected_size}"
903-
echo "Got: ${DOWNLADED_SIZE}"
903+
echo "Got: ${DOWNLOADED_SIZE}"
904904
echo "Please re-initiate the download"
905905
return 1
906906
fi

benchmarks/lineprotocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ def lineformat(
164164
) -> None:
165165
baseline = BenchmarkRun.load_from_file(baseline)
166166
context = baseline.context
167-
benchamrk_str = f"benchmark,name={context.name},version={context.benchmark_version},datafusion_version={context.datafusion_version},num_cpus={context.num_cpus}"
167+
benchmark_str = f"benchmark,name={context.name},version={context.benchmark_version},datafusion_version={context.datafusion_version},num_cpus={context.num_cpus}"
168168
for query in baseline.queries:
169169
query_str = f"query=\"{query.query}\""
170170
timestamp = f"{query.start_time*10**9}"
171171
for iter_num, result in enumerate(query.iterations):
172-
print(f"{benchamrk_str} {query_str},iteration={iter_num},row_count={result.row_count},elapsed_ms={result.elapsed*1000:.0f} {timestamp}\n")
172+
print(f"{benchmark_str} {query_str},iteration={iter_num},row_count={result.row_count},elapsed_ms={result.elapsed*1000:.0f} {timestamp}\n")
173173

174174
def main() -> None:
175175
parser = ArgumentParser()

benchmarks/queries/h2o/window.sql

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,11 @@ SELECT
109109
id3,
110110
v2,
111111
sum(v2) OVER (PARTITION BY id2 ORDER BY v2 RANGE BETWEEN 3 PRECEDING AND CURRENT ROW) AS my_range_between_by_id2
112-
FROM large;
112+
FROM large;
113+
114+
-- Window Top-N (ROW_NUMBER top-2 per partition)
115+
SELECT id2, largest2_v2 FROM (
116+
SELECT id2, v2 AS largest2_v2,
117+
ROW_NUMBER() OVER (PARTITION BY id2 ORDER BY v2 DESC) AS order_v2
118+
FROM large WHERE v2 IS NOT NULL
119+
) sub_query WHERE order_v2 <= 2;

benchmarks/queries/q10.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where
1616
c_custkey = o_custkey
1717
and l_orderkey = o_orderkey
1818
and o_orderdate >= date '1993-10-01'
19-
and o_orderdate < date '1994-01-01'
19+
and o_orderdate < date '1993-10-01' + interval '3' month
2020
and l_returnflag = 'R'
2121
and c_nationkey = n_nationkey
2222
group by

benchmarks/queries/q11.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ group by
1313
ps_partkey having
1414
sum(ps_supplycost * ps_availqty) > (
1515
select
16-
sum(ps_supplycost * ps_availqty) * 0.0001
16+
sum(ps_supplycost * ps_availqty) * 0.0001 /* __TPCH_Q11_FRACTION__ */
1717
from
1818
partsupp,
1919
supplier,
@@ -24,4 +24,4 @@ group by
2424
and n_name = 'GERMANY'
2525
)
2626
order by
27-
value desc;
27+
value desc;

benchmarks/queries/q12.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ where
2323
and l_commitdate < l_receiptdate
2424
and l_shipdate < l_commitdate
2525
and l_receiptdate >= date '1994-01-01'
26-
and l_receiptdate < date '1995-01-01'
26+
and l_receiptdate < date '1994-01-01' + interval '1' year
2727
group by
2828
l_shipmode
2929
order by
30-
l_shipmode;
30+
l_shipmode;

benchmarks/queries/q14.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ from
1010
where
1111
l_partkey = p_partkey
1212
and l_shipdate >= date '1995-09-01'
13-
and l_shipdate < date '1995-10-01';
13+
and l_shipdate < date '1995-09-01' + interval '1' month;

benchmarks/queries/q5.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ where
1717
and n_regionkey = r_regionkey
1818
and r_name = 'ASIA'
1919
and o_orderdate >= date '1994-01-01'
20-
and o_orderdate < date '1995-01-01'
20+
and o_orderdate < date '1994-01-01' + interval '1' year
2121
group by
2222
n_name
2323
order by
24-
revenue desc;
24+
revenue desc;

0 commit comments

Comments
 (0)