You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/11/02 17:35:00 UTC
[jira] [Updated] (SPARK-54139) Incorrect parameter passed CANNOT_PARSE_DATATYPE error class
[ https://issues.apache.org/jira/browse/SPARK-54139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-54139:
-----------------------------------
Labels: pull-request-available (was: )
> Incorrect parameter passed CANNOT_PARSE_DATATYPE error class
> ------------------------------------------------------------
>
> Key: SPARK-54139
> URL: https://issues.apache.org/jira/browse/SPARK-54139
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 3.5.0, 4.0.0
> Reporter: Khalid Mammadov
> Priority: Minor
> Labels: pull-request-available
>
> Incorrect parameter *error* is used for CANNOT_PARSE_DATATYPE error class in PySpark code. It expects {*}msg{*}. Due to this the error produced during usage is incorrect:
> Example:
>
> {code:java}
> StructField.fromJson({"name": "col1", "type": "NewType", "nullable": "True", "metadata": None}) {code}
> Error:
>
>
> {code:java}
> assert set(message_parameters_from_template) == set(message_parameters), (
> AssertionError: Undefined error message parameter for error class: CANNOT_PARSE_DATATYPE. Parameters: {'error': 'NewType'} {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org