You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/06/30 07:22:00 UTC

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

    [ https://issues.apache.org/jira/browse/SPARK-39639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17560866#comment-17560866 ] 

Apache Spark commented on SPARK-39639:
--------------------------------------

User 'panbingkun' has created a pull request for this issue:
https://github.com/apache/spark/pull/37031

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