snuyanzin commented on code in PR #28834:
URL: https://github.com/apache/flink/pull/28834#discussion_r3667420083


##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/GenerateUtils.scala:
##########
@@ -636,9 +637,10 @@ object GenerateUtils {
         INTERVAL_YEAR_MONTH | INTERVAL_DAY_TIME =>
       s"($leftTerm > $rightTerm ? 1 : $leftTerm < $rightTerm ? -1 : 0)"
     case TIMESTAMP_WITH_TIME_ZONE | MULTISET | MAP | VARIANT | BITMAP =>
-      throw new UnsupportedOperationException(
-        s"Type($t) is not an orderable data type, " +
-          s"it is not supported as a ORDER_BY/GROUP_BY/JOIN_EQUAL field.")
+      throw new ValidationException(

Review Comment:
   just compare javadoc
   
https://github.com/apache/flink/blob/59ebb9a16627d6042f06540abc268918addd9f22/flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/TableRuntimeException.java#L24
   vs
   
https://github.com/apache/flink/blob/59ebb9a16627d6042f06540abc268918addd9f22/flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/ValidationException.java#L24



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

Reply via email to