055124a048
### What changes were proposed in this pull request? Change null Literal to PrettyAttribute during ResolveAlias. ### Why are the changes needed? We will convert `Literal(null)` to target data type during analysis. Then the generated alias name will include something like `CAST(NULL AS String)` instead of `NULL`. ``` spark.sql("SELECT RAND(null)").columns -- before rand(CAST(NULL AS INT)) -- after rand(NULL) ``` ### Does this PR introduce _any_ user-facing change? Yes, the default column name maybe changed. ### How was this patch tested? Add test and pass exists test. Closes #31233 from ulysses-you/SPARK-34150. Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |