[
https://issues.apache.org/jira/browse/SPARK-43362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-43362:
-----------------------------------
Labels: pull-request-available (was: )
> Special handling of JSON type for MySQL connector
> -------------------------------------------------
>
> Key: SPARK-43362
> URL: https://issues.apache.org/jira/browse/SPARK-43362
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Tianhan Hu
> Assignee: Tianhan Hu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> MySQL JSON type is converted into JDBC {{VARCHAR}} type with precision of -1
> on some MariaDB drivers.
> When receiving {{VARCHAR}} with negative precision, Spark will throw an error.
> This ticket purposes to special case this scenario by directly converting
> JSON type into StringType in MySQLDialect.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]