Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/parquet-variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- parquet-variant/**
- parquet-variant-json/**
- parquet-variant-compute/**
- parquet-variant-integration-testing/**
- .github/**

jobs:
Expand All @@ -54,6 +55,8 @@ jobs:
run: cargo test -p parquet-variant-json
- name: Test parquet-variant-compute
run: cargo test -p parquet-variant-compute
- name: Test parquet-variant-compute
run: cargo test -p parquet-variant-integration-testing

# test compilation
linux-features:
Expand Down Expand Up @@ -91,3 +94,5 @@ jobs:
run: cargo clippy -p parquet-variant-json --all-targets --all-features -- -D warnings
- name: Run clippy (parquet-variant-compute)
run: cargo clippy -p parquet-variant-compute --all-targets --all-features -- -D warnings
- name: Run clippy (parquet-variant-integration-testing)
run: cargo clippy -p parquet-variant-integration-testing --all-targets --all-features -- -D warnings
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ members = [
"parquet-variant",
"parquet-variant-compute",
"parquet-variant-json",
"parquet-variant-integration-testing",
"parquet_derive",
"parquet_derive_test",
]
Expand Down
37 changes: 37 additions & 0 deletions parquet-variant-integration-testing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

## Tests for combining

[package]
name = "parquet-variant-integration-testing"
version = "0.1.0"
license = { workspace = true }
description = "Apache Parquet Variant Integration Testing"
homepage = { workspace = true }
repository = { workspace = true }
authors = { workspace = true }
keywords = ["arrow", "parquet", "variant"]
edition = { workspace = true }
rust-version = { workspace = true }


[dependencies]
parquet = { workspace = true, features=["arrow", "async", "experimental"] }
arrow = { workspace = true }


Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
//! Based on the parquet-testing PR: https://github.com/apache/parquet-testing/pull/90/files
//! Inspired by the arrow-go implementation: https://github.com/apache/arrow-go/pull/455/files

// These tests require the arrow feature
#![cfg(feature = "arrow")]

use arrow_array::{Array, StructArray};
use arrow::array::{Array, StructArray};
use parquet::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
use std::{
env,
Expand Down Expand Up @@ -1218,8 +1215,8 @@ fn find_existing_variant_test_data() -> Result<PathBuf, Box<dyn Error>> {

let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap_or_else(|_| ".".to_string());
let candidates = vec![
PathBuf::from(&manifest_dir).join("../parquet-testing/variant"),
PathBuf::from(&manifest_dir).join("parquet-testing/variant"),
PathBuf::from(&manifest_dir).join("../../../parquet-testing/variant"),
PathBuf::from(&manifest_dir).join("../../parquet-testing/variant"),
];

for candidate in candidates {
Expand Down
Loading