Coder Social home page Coder Social logo

Comments (6)

serxa avatar serxa commented on September 26, 2024

It is quite unusual. Could you provide more information about your dataset? How many strings, what is the average length, high or low cardinality? Also, it would be interesting to see the results of queries comparing how uniqExact, uniq, uniqCombined, and uniqCombined64 behave on your dataset.

from clickhouse.

nickitat avatar nickitat commented on September 26, 2024

any specific example when the problem reproduces?
have you tried changing HLL_precision parameter?

from clickhouse.

den-crane avatar den-crane commented on September 26, 2024

uniqCombined is for int32 numbers and strings (with strings it works as uniqCombined64). Try uniqCombined64 instead.

uniqCombined(2, xx)

Haha, in this case you pass a tuple(2,xx) and it starts to behave as uniqCombined64. Just use uniqCombined64.

from clickhouse.

den-crane avatar den-crane commented on September 26, 2024

@nickitat Maybe uniqCombined should throw an error if not 32 bit argument is passed and show an explanation with a suggestion to use uniqCombined64? And the setting allow_unsafe_uniqCombined=false for the backward compatibility in queries and states saved with materialized views and projections.

from clickhouse.

crazyleeyang avatar crazyleeyang commented on September 26, 2024

It is quite unusual. Could you provide more information about your dataset? How many strings, what is the average length, high or low cardinality? Also, it would be interesting to see the results of queries comparing how uniqExact, uniq, uniqCombined, and uniqCombined64 behave on your dataset.

It is quite unusual. Could you provide more information about your dataset? How many strings, what is the average length, high or low cardinality? Also, it would be interesting to see the results of queries comparing how uniqExact, uniq, uniqCombined, and uniqCombined64 behave on your dataset.

The statistics of column length arre as follows

┌─col_len─┬──count()─┐
│       8 │        2 │
│      11 │       13 │
│      13 │       48 │
│      14 │     1078 │
│      15 │    14925 │
│      16 │  2017052 │
│      17 │        2 │
│      19 │        1 │
│      24 │        5 │
│      32 │  8241286 │
│      33 │        1 │
│      34 │       22 │
│      35 │      407 │
│      36 │  7784682 │
│      40 │        1 │
│      42 │        2 │
│      50 │        7 │
│      64 │ 10931446 │
│      65 │        2 │
│      71 │        7 │
│      82 │      245 │
│     116 │        2 │
│     146 │       76 │
└─────────┴──────────┘

from clickhouse.

crazyleeyang avatar crazyleeyang commented on September 26, 2024

any specific example when the problem reproduces? have you tried changing HLL_precision parameter?

i have test with HLL_precision, it works ok

from clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.