cloud-fan commented on a change in pull request #26738: [SPARK-30082][SQL] Do
not replace Zeros when replacing NaNs
URL: https://github.com/apache/spark/pull/26738#discussion_r353132269
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/DataFrameNaFunctionsSuite.scala
##########
@@ -37,6 +37,16 @@ class DataFrameNaFunctionsSuite extends QueryTest with
SharedSparkSession {
).toDF("name", "age", "height")
}
+ def createNaNDF(): DataFrame = {
+ Seq[(java.lang.Integer, java.lang.Long, java.lang.Short,
+ java.lang.Byte, java.lang.Float, java.lang.Double)](
Review comment:
OK we can keep the type declaration, but can we use `1L`, `1.toShort`, etc.
when writing the values?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]