raminqaf commented on code in PR #29882:
URL: https://github.com/apache/flink/pull/29882#discussion_r4737778987


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/common/CalcTestPrograms.java:
##########
@@ -315,6 +316,44 @@ public class CalcTestPrograms {
                             "INSERT INTO sink_t SELECT PARSE_JSON(s), 
TRY_PARSE_JSON(s), v['k'] FROM t")
                     .build();
 
+    /**
+     * Restores a plan with version 1 of ITEM and ELEMENT, which returns the 
default value of the
+     * element type instead of NULL for a missing element of a NOT NULL type. 
Regenerating the plan
+     * would compile version 2.
+     */
+    public static final TableTestProgram CALC_MISSING_ELEMENT_V1 =

Review Comment:
   it is split now into two tests



##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/FlinkSqlOperatorTable.java:
##########
@@ -1295,6 +1295,28 @@ public List<SqlGroupedWindowFunction> 
getAuxiliaryFunctions() {
     // VERSIONED OPERATORS
     // 
--------------------------------------------------------------------------------------------
 
+    /**
+     * Returns the default value of the element type instead of NULL for a 
missing element of a NOT
+     * NULL type, for example -1 for {@code ARRAY<INT NOT NULL>}.

Review Comment:
   Correct, reworded the Javadocs.



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