zhangyue19921010 commented on code in PR #11312:
URL: https://github.com/apache/paimon/pull/11312#discussion_r4667338839


##########
paimon-common/src/main/java/org/apache/paimon/casting/StringToArrayCastRule.java:
##########
@@ -116,7 +119,7 @@ private List<Object> parseArrayElements(
             String value = token.value();
             // only an unquoted null is the null element; "null" is the 
four-character string
             Object element =
-                    !token.literal() && "null".equals(value)
+                    !token.literal() && "null".equalsIgnoreCase(value)

Review Comment:
   Fixed in 8f7360b: the stored literal grammar is unchanged again (only an 
unquoted lowercase `null` token is null, so an existing `[NULL]` keeps meaning 
the string for arrays, maps and rows), and Spark instead lowercases nested SQL 
`NULL` keywords when converting CREATE and ALTER defaults to metadata.



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