cloud-fan commented on code in PR #53344:
URL: https://github.com/apache/spark/pull/53344#discussion_r2608917081
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/CatalystTypeConverters.scala:
##########
@@ -79,6 +78,8 @@ object CatalystTypeConverters {
new GeometryConverter(g)
case DateType if SQLConf.get.datetimeJava8ApiEnabled =>
LocalDateConverter
case DateType => DateConverter
+ case _: TimeType if !SQLConf.get.isTimeTypeEnabled =>
Review Comment:
We have it here, a few lines above
```
case _ @ (_: GeographyType | _: GeometryType) if
!SQLConf.get.geospatialEnabled =>
throw new org.apache.spark.sql.AnalysisException(
errorClass = "UNSUPPORTED_FEATURE.GEOSPATIAL_DISABLED",
messageParameters = scala.collection.immutable.Map.empty)
```
--
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]