[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to