zhang-jianq commented on code in PR #13670:
URL: https://github.com/apache/gluten/pull/13670#discussion_r4750455207


##########
gluten-flink/planner/src/main/java/org/apache/gluten/rexnode/TypeUtils.java:
##########
@@ -64,9 +64,10 @@ public static boolean isStringType(Type type) {
 
   // Matches the scalar signatures registered under the velox flinksql
   // namespace: booleans, numerics, strings, dates, timestamps and decimals.
-  // BINARY, ARRAY, MAP and ROW have no flinksql registration and are
-  // rejected at the converter level so conversion fails at planning time
-  // instead of failing at runtime.
+  // BINARY has flinksql registrations only for the hash family, so it is not a

Review Comment:
   Thank you for your review — agreed, and the comment you quoted overstated 
the protection: only `ScalarOnlyRexCallConverter` consults `isScalarType`, and 
before this PR BYTES was in fact stopped by `toType`. It is rewritten to say 
so. Calls with a BINARY-family operand or result are now rejected at planning 
unless the operator is in `BINARY_ALLOWLIST` (the hash family, `CAST`, `CASE`, 
`COALESCE`, `IS [NOT] NULL`), before any converter is consulted; `CAST` goes 
through its own guards.



-- 
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]

Reply via email to