Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -465,16 +465,25 @@ class VeloxOrcDataTypeValidationSuite extends VeloxWholeStageTransformerSuite {
}
}

ignore("Velox Parquet Write") {
test("Velox Parquet Write") {
withSQLConf((GlutenConfig.NATIVE_WRITER_ENABLED.key, "true")) {
withTempDir {
dir =>
val write_path = dir.toURI.getPath
val data_path = getClass.getResource("/").getPath + "/data-type-validation-data/type1"
val df = spark.read.format("parquet").load(data_path)
df.write.mode("append").format("parquet").save(write_path)
val writePath = dir.toURI.getPath
val dataPath = getClass.getResource("/").getPath + "/data-type-validation-data/type1"
Comment on lines +472 to +473
// Velox native write doesn't support Complex type.
val df = spark.read
.format("parquet")
.load(dataPath)
.drop("array")
.drop("struct")
.drop("map")
Comment on lines +478 to +480
df.write.mode("append").format("parquet").save(writePath)
val parquetDf = spark.read
.format("parquet")
.load(writePath)
checkAnswer(parquetDf, df)
}
}

}
}