Github user MaxGekk commented on the issue:
https://github.com/apache/spark/pull/21736
@cloud-fan Just for testing, I changed implementation slightly:
- removed `@transient lazy val legacySizeOfNull =
SQLConf.get.legacySizeOfNull`
- and call the `SQLConf.get.legacySizeOfNull` directly in 3 places instead
of checking the lazy val.
```
scala> val df = spark.sql("select size(null)")
scala> spark.conf.set("spark.sql.legacy.sizeOfNull", "false")
scala> df.show()
+----------+
|size(NULL)|
+----------+
| null|
+----------+
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]