Josh Rosen created SPARK-17117:
----------------------------------

             Summary: 'SELECT 1 / NULL` throws AnalysisException, while 'SELECT 
1 * NULL` works
                 Key: SPARK-17117
                 URL: https://issues.apache.org/jira/browse/SPARK-17117
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Josh Rosen


Running {{SELECT 1 / NULL}} fails with

{code}
org.apache.spark.sql.AnalysisException: cannot resolve '(1 / NULL)' due to data 
type mismatch: differing types in '(1 / NULL)' (int and null).
{code}

but {{SELECT 1 * NULL}} returns {{NULL}}, as expected.



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

Reply via email to