You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "cloud-fan (via GitHub)" <gi...@apache.org> on 2023/12/19 05:25:42 UTC

Re: [PR] [SPARK-46448][SQL] InlineTable column should be nullable when converted to Decimal might cause null [spark]

cloud-fan commented on code in PR #44404:
URL: https://github.com/apache/spark/pull/44404#discussion_r1430929145


##########
sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala:
##########
@@ -4713,6 +4713,12 @@ class SQLQuerySuite extends QueryTest with SharedSparkSession with AdaptiveSpark
     val df6 = df3.join(df2, col("df3.zaak_id") === col("df2.customer_id"), "outer")
     df5.crossJoin(df6)
   }
+
+  test("SPARK-46448: InlineTable column is nullable if converting to Decimal could be null") {
+    val plan = sql("SELECT * FROM values(-0.172787979),(533704665545018957788294905796.5)")

Review Comment:
   wait, so we still get null value at the end?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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