stevenzwu commented on code in PR #7493:
URL: https://github.com/apache/iceberg/pull/7493#discussion_r1183184498


##########
flink/v1.17/flink/src/main/java/org/apache/iceberg/flink/data/RowDataProjection.java:
##########
@@ -166,7 +169,8 @@ public int getArity() {
 
   @Override
   public RowKind getRowKind() {
-    return rowData.getRowKind();
+    // rowData can be null for nested struct

Review Comment:
   when the location struct is null, there is a RowDataProjection instanced 
created that wraps the null RowData. Let me think if there is other way to fix 
this. e.g. maybe we should return a null RowDataProjection in this case.
   
   <img width="1288" alt="image" 
src="https://user-images.githubusercontent.com/1545663/235820171-075787cf-bd50-416c-b284-7c49652f7579.png";>
   



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