uros-db commented on code in PR #53009:
URL: https://github.com/apache/spark/pull/53009#discussion_r2538721995
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/st/STExpressionUtils.scala:
##########
@@ -36,6 +40,11 @@ private[sql] object STExpressionUtils {
*/
def geospatialTypeWithSrid(sourceType: DataType, srid: Expression): DataType
= {
sourceType match {
+ case _ if !SQLConf.get.geospatialEnabled =>
Review Comment:
Yes, this is very narrow wrt. geo. It's exclusively used in ST expressions
(currently only 1 expression, but will be re-used in a few more) to determine
the resulting dataType.
--
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]