[jira] [Assigned] (SPARK-6740) SQL operator and condition precedence is not honoured

2015-05-21 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-6740:
---

Assignee: Apache Spark

> SQL operator and condition precedence is not honoured
> -
>
> Key: SPARK-6740
> URL: https://issues.apache.org/jira/browse/SPARK-6740
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 1.3.0
>Reporter: Santiago M. Mola
>Assignee: Apache Spark
>
> The following query from the SQL Logic Test suite fails to parse:
> SELECT DISTINCT * FROM t1 AS cor0 WHERE NOT ( - _2 + - 39 ) IS NULL
> while the following (equivalent) does parse correctly:
> SELECT DISTINCT * FROM t1 AS cor0 WHERE NOT (( - _2 + - 39 ) IS NULL)
> SQLite, MySQL and Oracle (and probably most SQL implementations) define IS 
> with higher precedence than NOT, so the first query is valid and well-defined.



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

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



[jira] [Assigned] (SPARK-6740) SQL operator and condition precedence is not honoured

2015-05-21 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-6740:
---

Assignee: (was: Apache Spark)

> SQL operator and condition precedence is not honoured
> -
>
> Key: SPARK-6740
> URL: https://issues.apache.org/jira/browse/SPARK-6740
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 1.3.0
>Reporter: Santiago M. Mola
>
> The following query from the SQL Logic Test suite fails to parse:
> SELECT DISTINCT * FROM t1 AS cor0 WHERE NOT ( - _2 + - 39 ) IS NULL
> while the following (equivalent) does parse correctly:
> SELECT DISTINCT * FROM t1 AS cor0 WHERE NOT (( - _2 + - 39 ) IS NULL)
> SQLite, MySQL and Oracle (and probably most SQL implementations) define IS 
> with higher precedence than NOT, so the first query is valid and well-defined.



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

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