Skip to content

Commit

Permalink
Check for file format
Browse files Browse the repository at this point in the history
  • Loading branch information
surnaik committed Jun 13, 2024
1 parent acbd0c6 commit 2bdf4ee
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,15 @@ object VeloxBackendSettings extends BackendSettingsApi {
case h: HiveFileFormat
if h.toString.contains("parquet") && GlutenConfig.getConf.enableHiveFileFormatWriter =>
None // Parquet via Hive SerDe
case h: HiveFileFormat => {
println("DBG: Test for Hive File Type")
println(h.toString)
Some("Only parquet fileformat is supported")
}
case _ =>
Some("Only parquet fileformat is supported in Velox backend.") // Unsupported format
Some(
s"${format.toString} is not supported. Only parquet fileformat is supported in Velox backend."
) // Unsupported format
}
}

Expand Down

0 comments on commit 2bdf4ee

Please sign in to comment.