[ https://issues.apache.org/jira/browse/SPARK-31468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan reassigned SPARK-31468: ----------------------------------- Assignee: Takeshi Yamamuro > Null types should be implicitly casted to Decimal types > ------------------------------------------------------- > > Key: SPARK-31468 > URL: https://issues.apache.org/jira/browse/SPARK-31468 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 3.0.0 > Reporter: Takeshi Yamamuro > Assignee: Takeshi Yamamuro > Priority: Major > > A query below fails in master/branch-3.0 and passed in v2.4.5; > {code} > scala> Seq(BigDecimal(10)).toDF("v1").selectExpr("v1 = NULL").explain(true) > org.apache.spark.sql.AnalysisException: cannot resolve '(`v1` = NULL)' due to > data type mismatch: differing types in '(`v1` = NULL)' (decimal(38,18) and > null).; line 1 pos 0; > 'Project [(v1#5 = null) AS (v1 = NULL)#7] > +- Project [value#2 AS v1#5] > +- LocalRelation [value#2] > ... > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org