nateab commented on code in PR #26719:
URL: https://github.com/apache/flink/pull/26719#discussion_r2190843762


##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/calls/ScalarOperatorGens.scala:
##########
@@ -1423,7 +1423,7 @@ object ScalarOperatorGens {
          |    $resultTerm = $nullTerm ? $defaultValue : $arrayGet;
          |    break;
          |  default:
-         |    throw new RuntimeException("Array has more than one element.");
+         |    throw new 
org.apache.flink.table.api.TableRuntimeException("Array has more than one 
element.");

Review Comment:
   Idk if you saw my comment 
[here](https://github.com/apache/flink/pull/26719#discussion_r2178469627), but 
when I tried adding a test like that, it would break the testing framework 



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