Chenhao Li created SPARK-49761:
----------------------------------
Summary: Fix return type nullness of schema_of_json
Key: SPARK-49761
URL: https://issues.apache.org/jira/browse/SPARK-49761
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.5.2, 4.0.0
Reporter: Chenhao Li
The `schema_of_json` expression incorrectly marks its return type as
non-nullable, which means that it should return a non-null result even for null
input. This is not true because the expression is actually null-intolerant.
This error can lead to NPE in the generated code.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]