[
https://issues.apache.org/jira/browse/SPARK-57186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan reassigned SPARK-57186:
-----------------------------------
Assignee: Dejan Krakovic
> 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
> Assignee: Dejan Krakovic
> Priority: Major
> Labels: pull-request-available
> 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]