Skip to content

Commit

Permalink
Add scala test for UINT64 parquet
Browse files Browse the repository at this point in the history
Signed-off-by: Kuhu Shukla <kuhus@nvidia.com>
  • Loading branch information
kuhushukla committed Dec 22, 2021
1 parent 13f8d7c commit 37ff090
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added tests/src/test/resources/test_unsigned64.parquet
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,17 @@ class ParquetScanSuite extends SparkQueryCompareTestSuite {
assumeCondition = (_ => (VersionUtils.isSpark320OrLater, "Spark version not 3.2.0+"))) {
frame => frame.select(col("*"))
}

/** Parquet file with 2 columns
* <simple_uint64, UINT64>
* <arr_uint64, array(UINT64)>
*/
*
testSparkResultsAreEqual("Test Parquet unsigned int: uint64",
frameFromParquet("test_unsigned64.parquet"),
// CPU version throws an exception when Spark < 3.2, so skip when Spark < 3.2.
// The exception is like "Parquet type not supported: INT32 (UINT_8)"
assumeCondition = (_ => (VersionUtils.isSpark320OrLater, "Spark version not 3.2.0+"))) {
frame => frame.select(col("*"))
}
}

0 comments on commit 37ff090

Please sign in to comment.