[
https://issues.apache.org/jira/browse/SPARK-50373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-50373.
---------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 48909
[https://github.com/apache/spark/pull/48909]
> Prohibit set operations on Variant type
> ---------------------------------------
>
> Key: SPARK-50373
> URL: https://issues.apache.org/jira/browse/SPARK-50373
> Project: Spark
> Issue Type: Task
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Harsh Motwani
> Assignee: Harsh Motwani
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> Currently, the operations `DISTINCT`, `INTERSECT` and `EXCEPT` are allowed on
> Variant columns. However, since Variant is not orderable, and Variant
> equality is not defined, we should not allow this behavior. Sometimes, these
> queries fail during execution. However, they should fail during analysis with
> a well defined error message. Example:
> select distinct (parse_json(case when id = 0 then 'null' else '1' end) as v,
> id % 5 as id) from range(0, 100, 1, 5)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]