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 Owen (JIRA)" <ji...@apache.org> on 2017/11/21 19:56:00 UTC

[jira] [Resolved] (SPARK-22576) Spark SQL locate returns incorrect value when the start position is negative

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

Sean Owen resolved SPARK-22576.
-------------------------------
    Resolution: Not A Problem

Yes, there's nothing about HiveQL (which Spark follows) or Spark SQL that suggests -1 is a valid start position. It is 1-based, even. I don't even see that engines like MySQL support it. https://www.w3schools.com/sql/func_mysql_locate.asp


> Spark SQL locate returns incorrect value when the start position is negative
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-22576
>                 URL: https://issues.apache.org/jira/browse/SPARK-22576
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Yuxin Cao
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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