You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2022/07/19 11:48:00 UTC

[jira] [Resolved] (SPARK-39639) Fix possible null pointer in MySQLDialect listIndexes

     [ https://issues.apache.org/jira/browse/SPARK-39639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean R. Owen resolved SPARK-39639.
----------------------------------
    Resolution: Not A Problem

> Fix possible null pointer in MySQLDialect listIndexes
> -----------------------------------------------------
>
>                 Key: SPARK-39639
>                 URL: https://issues.apache.org/jira/browse/SPARK-39639
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: BingKun Pan
>            Priority: Minor
>
> h3. when:
> {quote}val indexComment = rs.getString("Index_comment") {color:#172b4d}*return null*{color}
> {quote}
> h3. then:
> {quote}if (indexComment.nonEmpty) properties.put("COMMENT", indexComment) {color:#172b4d}*throw NullPointerException*{color}
> {quote}
> h3. finally:
> {quote}MySQLDialect.listIndexes {color:#172b4d}return incorrect result(ingore exist index).{color}
> {quote}



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