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 2015/04/07 01:28:12 UTC

[jira] [Commented] (SPARK-6729) DriverQuirks get can get OutOfBounds exception is some cases

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

Apache Spark commented on SPARK-6729:
-------------------------------------

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

> DriverQuirks get can get OutOfBounds exception is some cases
> ------------------------------------------------------------
>
>                 Key: SPARK-6729
>                 URL: https://issues.apache.org/jira/browse/SPARK-6729
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Volodymyr Lyubinets
>            Priority: Minor
>
> The function uses .substring(0, X), which will trigger OutOfBoundsException if string length is less than X. A better way to do this is to use startsWith, which won't error out in this case. I'll propose a patch shortly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org