Skip to content

Range extension for type Date32  #32006

Closed

Description

@bartompko

We would like to use Clickhouse in our new data warehouse project, unfortunately we encountered the problem of too narrow range for the Date32 type. This type is stored in 4 bytes, so theoretically, it could store 11 million years. However, it has been narrowed down to the range between 1925 and 2283. I would like to ask, could you consider extending the range Date32 from 0001-01-01 to 9999-01-01?

Activity

  1. added and removed
    question
    on Nov 30, 2021
  2. den-crane commented on Nov 30, 2021

    @den-crane
    Contributor

    Do you propose to use a fake Gregorian calendar for dates before 1925?

  3. bartompko commented on Nov 30, 2021

    @bartompko
    Author

    In my opinion, the best solution is to refer to the Gregorian calendar currently in force in the world.

  4. added
    comp-datetime
    on Nov 30, 2021
  5. bartompko commented on Dec 1, 2021

    @bartompko
    Author

    Proleptic Gregorian calendar is a good idea :).

  6. filimonov commented on Jun 28, 2022

    @filimonov
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-datetimefeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions