Dejan Krakovic created SPARK-57186:
--------------------------------------
Summary: Handle NullType in ExtractValue to return NULL instead of
throwing
Key: SPARK-57186
URL: https://issues.apache.org/jira/browse/SPARK-57186
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 4.2.0
Reporter: Dejan Krakovic
Fix For: 4.2.0
Add a {{case (NullType, _)}} handler in {{ExtractValue.extractValue()}} that
returns {{Literal(null, NullType)}} instead of falling through to the
{{INVALID_EXTRACT_BASE_FIELD_TYPE}} error.
This aligns with standard SQL semantics where any operation on NULL yields NULL.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]