GithubHelp home page GithubHelp logo

RFC: UUID 2.0 data types about clickhouse HOT 4 CLOSED

rschu1ze avatar rschu1ze commented on May 27, 2024 2
RFC: UUID 2.0 data types

from clickhouse.

Comments (4)

UnamedRus avatar UnamedRus commented on May 27, 2024 1

There is also problem with "awful" hash function, for UUID in uniq aggregate function #34425 (comment)

from clickhouse.

den-crane avatar den-crane commented on May 27, 2024

The only concern is that Clickhouse is a DWH database and users may want to store uuids from different sources in the same column and also users may not know what their uuids are.
Of course in this case they can use the old UUID.
But I would consider the implementation of one new UUID type and name it nUUID or xUUID or ...

from clickhouse.

UnamedRus avatar UnamedRus commented on May 27, 2024

I think, for new ClickHouse installations we need to use "new" variant.
For older, users need to explicitly enable this setting.

from clickhouse.

alexey-milovidov avatar alexey-milovidov commented on May 27, 2024

Original proposal:

Often we store UUIDs from external systems, and they could be both v4 and v7. There is already a problem that sorting is not as expected. I think the only way will be to introduce data types UUID1, UUID2 (or with better names) and when a user writes UUID in the table definition or while casting, it will be persisted as either UUID1 or UUID2, depending on a setting, and then we will enable UUID2 by default.

@rschu1ze for some reason your proposal is entirely different from the original.

Closing this because it does not make sense to have different data types for UUIDv4 and UUIDv7.
It should be a single data type for UUID, but without these abominations.

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.