d08f53dc61
## What changes were proposed in this pull request? In PR, I propose new behavior of `size(null)` under the config flag `spark.sql.legacy.sizeOfNull`. If the former one is disabled, the `size()` function returns `null` for `null` input. By default the `spark.sql.legacy.sizeOfNull` is enabled to keep backward compatibility with previous versions. In that case, `size(null)` returns `-1`. ## How was this patch tested? Modified existing tests for the `size()` function to check new behavior (`null`) and old one (`-1`). Author: Maxim Gekk <maxim.gekk@databricks.com> Closes #21598 from MaxGekk/legacy-size-of-null. |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |