You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Haohui Mai (Jira)" <ji...@apache.org> on 2021/10/08 11:29:00 UTC

[jira] [Created] (FLINK-24485) COUNT(DISTINCT) should support binary field

Haohui Mai created FLINK-24485:
----------------------------------

             Summary: COUNT(DISTINCT) should support binary field
                 Key: FLINK-24485
                 URL: https://issues.apache.org/jira/browse/FLINK-24485
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / API
    Affects Versions: 1.14.0
            Reporter: Haohui Mai


Current the SQL API fails when doing {{COUNT(DISTINCT)}} on a binary field. In our use case we store the UUID as a 16-byte binary string.

While it is possible to work around to do a base64 encoding on the string but it should be relatively straightforward to implement the native solution to gain the optimal speed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)