davidm-db commented on code in PR #53344:
URL: https://github.com/apache/spark/pull/53344#discussion_r2604455753
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala:
##########
@@ -408,6 +408,8 @@ class ParquetFileFormat
}
override def supportDataType(dataType: DataType): Boolean = dataType match {
+ case _: TimeType => SQLConf.get. isTimeTypeEnabled
Review Comment:
Added guards for all file formats (that haven't previously been explicitly
marked as not supported for TIME).
##########
sql/api/src/main/scala/org/apache/spark/sql/types/TimeType.scala:
##########
@@ -54,5 +54,7 @@ object TimeType {
val DEFAULT_PRECISION: Int = MICROS_PRECISION
val NANOS_PRECISION: Int = 9
- def apply(): TimeType = new TimeType(DEFAULT_PRECISION)
+ def apply(): TimeType = {
+ new TimeType(DEFAULT_PRECISION)
+ }
Review Comment:
Done.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]