You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Viktor Lučić (Jira)" <ji...@apache.org> on 2024/07/26 13:13:00 UTC

[jira] [Created] (SPARK-49018) Fix approx_count_distinct not working correctly with collation

Viktor Lučić created SPARK-49018:
------------------------------------

             Summary: Fix approx_count_distinct not working correctly with collation
                 Key: SPARK-49018
                 URL: https://issues.apache.org/jira/browse/SPARK-49018
             Project: Spark
          Issue Type: Task
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Viktor Lučić
             Fix For: 4.0.0


When running in spark-shell:
{code:java}
create table t(col string collate utf8_lcase)
insert into t values 'a', 'a', 'A'
select approx_count_distinct(col) from t {code}
we get 2 as an answer, but it should be 1.



--
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