jnh5y commented on code in PR #3668:
URL: https://github.com/apache/calcite/pull/3668#discussion_r1486959295
##########
core/src/main/java/org/apache/calcite/adapter/enumerable/RexToLixTranslator.java:
##########
@@ -312,7 +312,9 @@ private Expression getConvertExpression(
case CHAR:
case VARCHAR:
return Expressions.call(BuiltInMethod.ST_GEOM_FROM_EWKT.method,
operand);
-
+ case BINARY:
+ case VARBINARY:
+ return Expressions.call(BuiltInMethod.ST_GEOM_FROM_EWKB.method,
operand);
Review Comment:
As a future consideration, there are other binary formats like Tiny WKB.
https://github.com/TWKB/Specification/blob/master/twkb.md
I suppose that may be handled by a specific cast.
--
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]