joelrobin18 commented on code in PR #60219:
URL: https://github.com/apache/spark/pull/60219#discussion_r4514505608
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/hash.scala:
##########
@@ -650,6 +657,7 @@ abstract class HashExpression[E] extends Expression {
case _: DayTimeIntervalType => genHashLong(input, result)
case _: YearMonthIntervalType => genHashInt(input, result)
case BinaryType => genHashBytes(input, result)
+ case _: GeometryType | _: GeographyType => genHashBinaryView(input, result)
Review Comment:
Writes to a table bucketed by a GEOMETRY or GEOGRAPHY column, including
nested ones, now fail when Spark plans the write, with
`INVALID_BUCKET_COLUMN_DATA_TYPE`. This also rejects NULL-only and empty
writes, as noted in the PR description, and bucketed geo support is left for a
follow-up. @cloud-fan Could you review the PR?
--
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]