You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "itholic (via GitHub)" <gi...@apache.org> on 2023/04/26 14:51:44 UTC

[GitHub] [spark] itholic commented on a diff in pull request #40926: [SPARK-43261][PYTHON] Migrate `TypeError` from Spark SQL types into error class.

itholic commented on code in PR #40926:
URL: https://github.com/apache/spark/pull/40926#discussion_r1177999338


##########
python/pyspark/errors/error_classes.py:
##########
@@ -74,6 +84,21 @@
       "Can not infer Array Type from an list with None as the first element."
     ]
   },
+  "CANNOT_INFER_SCHEMA_FOR_TYPE": {
+    "message": [
+      "Can not infer schema for type: `<data_type>`."

Review Comment:
   Yes, and this behavior just simply mimics JVM-side error messages.



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