Skip to content

Apache DataFusion SQL Query Engine

MINOR: stop ignoring TPCH tests that now work (#3253)

kmitchenerbcb660eeb384
diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml
index 3dd9bcbde0..f4590e56d8 100644
--- a/benchmarks/Cargo.toml
+++ b/benchmarks/Cargo.toml
@@ -18,14 +18,14 @@
[package]
name = "datafusion-benchmarks"
description = "DataFusion Benchmarks"
-version = "5.0.0"
+version = "11.0.0"
edition = "2021"
authors = ["Apache Arrow <[email protected]>"]
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
license = "Apache-2.0"
publish = false
-rust-version = "1.59"
+rust-version = "1.62"
[features]
simd = ["datafusion/simd"]
diff --git a/benchmarks/README.md b/benchmarks/README.md
index e2a8f9ec02..7b4dd30010 100644
--- a/benchmarks/README.md
+++ b/benchmarks/README.md
@@ -61,6 +61,8 @@ The benchmark program also supports CSV and Parquet input file formats and a uti
cargo run --release --bin tpch -- convert --input ./data --output /mnt/tpch-parquet --format parquet
```
+Or if you want to verify and run all the queries in the benchmark, you can just run `cargo test`.
+
## Expected output
The result of query 1 should produce the following output when executed against the SF=1 dataset.
diff --git a/benchmarks/src/bin/tpch.rs b/benchmarks/src/bin/tpch.rs
index 5d4895698a..08374bfcc5 100644
--- a/benchmarks/src/bin/tpch.rs
+++ b/benchmarks/src/bin/tpch.rs
@@ -333,7 +333,6 @@ async fn convert_tbl(opt: ConvertOpt) -> Result<()> {
// create the physical plan
let csv = csv.to_logical_plan()?;
- let csv = ctx.optimize(&csv)?;
let csv = ctx.create_physical_plan(&csv).await?;
let output_path = output_root_path.join(table);
@@ -702,9 +701,8 @@ mod tests {
run_query(1).await
}
- #[ignore] // https://github.com/apache/arrow-datafusion/issues/159
#[tokio::test]
- async fn run_2() -> Result<()> {
+ async fn run_q2() -> Result<()> {
run_query(2).await
}
@@ -713,7 +711,6 @@ mod tests {
run_query(3).await
}
- #[ignore] // https://github.com/apache/arrow-datafusion/issues/160
#[tokio::test]
async fn run_q4() -> Result<()> {
run_query(4).await
@@ -749,7 +746,6 @@ mod tests {
run_query(10).await
}
- #[ignore] // https://github.com/apache/arrow-datafusion/issues/163
#[tokio::test]
async fn run_q11() -> Result<()> {
run_query(11).await
@@ -781,7 +777,6 @@ mod tests {
run_query(16).await
}
- #[ignore] // https://github.com/apache/arrow-datafusion/issues/168
#[tokio::test]
async fn run_q17() -> Result<()> {
run_query(17).await
@@ -792,12 +787,12 @@ mod tests {
run_query(18).await
}
+ #[ignore] // maybe it works, but if it never finishes, how can you tell?
#[tokio::test]
async fn run_q19() -> Result<()> {
run_query(19).await
}
- #[ignore] // https://github.com/apache/arrow-datafusion/issues/171
#[tokio::test]
async fn run_q20() -> Result<()> {
run_query(20).await
@@ -809,7 +804,6 @@ mod tests {
run_query(21).await
}
- #[ignore] // https://github.com/apache/arrow-datafusion/issues/175
#[tokio::test]
async fn run_q22() -> Result<()> {
run_query(22).await
@@ -821,21 +815,6 @@ mod tests {
return "NULL".to_string();
}
- // Special case ListArray as there is no pretty print support for it yet
- if let DataType::FixedSizeList(_, n) = column.data_type() {
- let array = column
- .as_any()
- .downcast_ref::<FixedSizeListArray>()
- .unwrap()
- .value(row_index);
-
- let mut r = Vec::with_capacity(*n as usize);
- for i in 0..*n {
- r.push(col_str(&array, i as usize));
- }
- return format!("[{}]", r.join(","));
- }
-
array_value_to_string(column, row_index).unwrap()
}
diff --git a/datafusion-examples/Cargo.toml b/datafusion-examples/Cargo.toml
index fde19e7db6..2ef65a213a 100644
--- a/datafusion-examples/Cargo.toml
+++ b/datafusion-examples/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-examples"
description = "DataFusion usage examples"
-version = "5.0.0"
+version = "11.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
authors = ["Apache Arrow <[email protected]>"]
@@ -26,7 +26,7 @@ license = "Apache-2.0"
keywords = [ "arrow", "query", "sql" ]
edition = "2021"
publish = false
-rust-version = "1.59"
+rust-version = "1.62"
[[example]]
name = "avro_sql"
diff --git a/dev/update_datafusion_versions.py b/dev/update_datafusion_versions.py
index d85dbb8f0b..0615bce762 100755
--- a/dev/update_datafusion_versions.py
+++ b/dev/update_datafusion_versions.py
@@ -17,13 +17,12 @@
# limitations under the License.
#
-# Script that updates verions for datafusion crates, locally
+# Script that updates versions for datafusion crates, locally
#
# dependencies:
# pip install tomlkit
import re
-import os
import argparse
from pathlib import Path
import tomlkit
@@ -39,6 +38,8 @@ crates = {
'datafusion-proto': 'datafusion/proto/Cargo.toml',
'datafusion-row': 'datafusion/row/Cargo.toml',
'datafusion-sql': 'datafusion/sql/Cargo.toml',
+ 'datafusion-benchmarks': 'benchmarks/Cargo.toml',
+ 'datafusion-examples': 'datafusion-examples/Cargo.toml',
}
def update_datafusion_version(cargo_toml: str, new_version: str):