You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/07/04 18:53:39 UTC

[GitHub] [spark] cloud-fan commented on a diff in pull request #37011: [SPARK-39625][SPARK-38904][SQL] Add Dataset.as(StructType)

cloud-fan commented on code in PR #37011:
URL: https://github.com/apache/spark/pull/37011#discussion_r913229504


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -294,6 +300,18 @@
       "UDF class <className> doesn't implement any UDF interface"
     ]
   },
+  "NULLABLE_ARRAY_OR_MAP_ELEMENT" : {
+    "message" : [
+      "Array or map at <columnPath> contains nullable element while it's required to be non-nullable."
+    ],
+    "sqlState" : "42000"
+  },
+  "NULLABLE_COLUMN_OR_FIELD" : {
+    "message" : [
+      "Column or field <name> is nullable while it's required to be non-nullable."

Review Comment:
   See test https://github.com/apache/spark/pull/37011/files#diff-115433d6399124014f2600556a5f6ced9b79b64e4584c19d51997c3eff9e6f33R178



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org