andygrove commented on code in PR #1667: URL: https://github.com/apache/datafusion-comet/pull/1667#discussion_r2068991765
########## spark/src/main/scala/org/apache/comet/DataTypeSupport.scala: ########## @@ -33,20 +37,25 @@ trait DataTypeSupport { * @return * true if the datatype is supported */ - def isAdditionallySupported(dt: DataType): Boolean = false + def isAdditionallySupported( + dt: DataType, + name: String, + fallbackReasons: ListBuffer[String]): Boolean = false - private def isGloballySupported(dt: DataType): Boolean = dt match { - case ByteType | ShortType - if CometSparkSessionExtensions.usingDataFusionParquetExec(SQLConf.get) && - !CometConf.COMET_SCAN_ALLOW_INCOMPATIBLE.get() => - false - case BooleanType | ByteType | ShortType | IntegerType | LongType | FloatType | DoubleType | - BinaryType | StringType | _: DecimalType | DateType | TimestampType => - true - case t: DataType if t.typeName == "timestamp_ntz" => - true - case _ => false - } + private def isGloballySupported(dt: DataType, fallbackReasons: ListBuffer[String]): Boolean = + dt match { + case ByteType | ShortType + if usingParquetExecWithIncompatTypes( + CometConf.COMET_NATIVE_SCAN_IMPL.get(SQLConf.get)) => + fallbackReasons += s"${CometConf.COMET_SCAN_ALLOW_INCOMPATIBLE.key} is false" + false + case BooleanType | ByteType | ShortType | IntegerType | LongType | FloatType | DoubleType | + BinaryType | StringType | _: DecimalType | DateType | TimestampType => + true + case t: DataType if t.typeName == "timestamp_ntz" => + true + case _ => false Review Comment: I will help with this today -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org