uros-db commented on code in PR #52491:
URL: https://github.com/apache/spark/pull/52491#discussion_r2405476619
##########
sql/api/src/main/scala/org/apache/spark/sql/catalyst/parser/DataTypeAstBuilder.scala:
##########
@@ -118,6 +118,32 @@ class DataTypeAstBuilder extends
SqlBaseParserBaseVisitor[AnyRef] {
currentCtx.precision.getText.toInt
}
TimeType(precision)
+ case GEOGRAPHY =>
+ // Unparameterized geometry type isn't supported and will be caught
by the default branch.
+ // Here, we only handle the parameterized GEOGRAPHY type syntax,
which comes in two forms:
+ if (currentCtx.srid.getText.toLowerCase(Locale.ROOT) == "any") {
+ // The special parameterized GEOGRAPHY type syntax has a single
"ANY" string value.
+ // This implies a mixed GEOGRAPHY type, with potentially different
SRID values rows.
Review Comment:
Rephrased, both for Geography and Geometry.
--
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]