Skip to content

Commit

Permalink
fallback timestamp scan for parquet if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
yma11 committed Aug 14, 2024
1 parent 9a7aa70 commit ac0a3ac
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,15 @@ object VeloxBackendSettings extends BackendSettingsApi {
}

format match {
case ParquetReadFormat | DwrfReadFormat => ValidationResult.succeeded
case ParquetReadFormat =>
val typeValidator: PartialFunction[StructField, String] = {
// Parquet timestamp is not fully supported yet
case StructField(_, TimestampType, _, _)
if GlutenConfig.getConf.forceParquetTimestampTypeScanFallbackEnabled =>
"TimestampType"
}
validateTypes(typeValidator)
case DwrfReadFormat => ValidationResult.succeeded
case OrcReadFormat =>
if (!GlutenConfig.getConf.veloxOrcScanEnabled) {
ValidationResult.failed(s"Velox ORC scan is turned off.")
Expand Down

0 comments on commit ac0a3ac

Please sign in to comment.