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: [email protected]
For additional commands, e-mail: [email protected]