hanyuzheng7 commented on code in PR #23173: URL: https://github.com/apache/flink/pull/23173#discussion_r1491299515
########## flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/BuiltInFunctionDefinitions.java: ########## @@ -391,6 +391,16 @@ ANY, and(logical(LogicalTypeRoot.BOOLEAN), LITERAL) .internal() .build(); + public static final BuiltInFunctionDefinition ARRAY_EXCEPT = + BuiltInFunctionDefinition.newBuilder() + .name("ARRAY_EXCEPT") + .kind(SCALAR) + .inputTypeStrategy(commonArrayType(2)) + .outputTypeStrategy(nullableIfArgs(COMMON)) Review Comment: In this case, it will return [1, 2, 3] `Returns an array of the elements in array1 but not in array2, without duplicates. If array1 is null, the function will return null.` if array2 is null, we just deduplicate array1 And the similar test case is here: -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org