Christian Stuart created SPARK-30904:
----------------------------------------

             Summary: Thrift RowBasedSet serialization throws 
NullPointerException on NULL BigDecimal
                 Key: SPARK-30904
                 URL: https://issues.apache.org/jira/browse/SPARK-30904
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 3.0.0, 3.1.0
            Reporter: Christian Stuart


Adding the following test to {{SparkThriftServerProtocolVersionsSuite}} 
reproduces the issue:
{code:scala}
test(s"$version get null as decimal") {
  testExecuteStatementWithProtocolVersion(version,
    "SELECT cast(null as decimal)") { rs =>
    assert(rs.next())
    assert(rs.getBigDecimal(1) === null)
  }
}{code}

The bug was introduced in https://github.com/apache/spark/commit/163f4a4



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

Reply via email to