You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/08/23 18:09:00 UTC
[jira] [Updated] (SPARK-58951) Support non-binary collations in collect_set
[ https://issues.apache.org/jira/browse/SPARK-58951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-58951:
-----------------------------------
Labels: pull-request-available (was: )
> Support non-binary collations in collect_set
> --------------------------------------------
>
> Key: SPARK-58951
> URL: https://issues.apache.org/jira/browse/SPARK-58951
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.4.0
> Reporter: Vinod KC
> Priority: Major
> Labels: pull-request-available
>
> `collect_set` currently rejects non-binary collated string inputs with an
> UNSUPPORTED_INPUT_TYPE error:
>
> {code:java}
> CREATE OR REPLACE TEMP VIEW v AS
> SELECT CAST(s AS STRING COLLATE UTF8_LCASE) AS s
> FROM VALUES ('foo'), ('FOO'), ('bar') AS raw(s);
> SELECT collect_set(s) FROM v;
> -- [DATATYPE_MISMATCH.UNSUPPORTED_INPUT_TYPE] ... collect_set ...
> {code}
>
> `collect_set` should support collated strings and return one representative per collation-equal group.
> For the view above, 'foo' and 'FOO' are equal under UTF8_LCASE, so the result should have 2 elements.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org