Skip to content

Incorrect example https://clickhouse.yandex/reference_en.html#timeSlots(StartTime, Duration) #102

Closed

Description

@shalugin

timeSlots(toDateTime('2012-01-01 12:20:00'), 600)

This select
SELECT timeSlots(toDateTime('2012-01-01 12:20:00'), 600)
will produce error:

Received exception from server:
Code: 43. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Illegal type UInt16 of second argument of function timeSlots. Must be UInt32..

Correct example:
SELECT timeSlots(toDateTime('2012-01-01 12:20:00'), toUInt32(600))

Activity

  1. alexey-milovidov commented on Sep 13, 2016

    @alexey-milovidov
    Member

    Thanks. Fixed.

  2. ghuname commented on Mar 13, 2018

    @ghuname

    The problem remains in v1.1.54362

  3. TianyiLu commented on Dec 11, 2018

    @TianyiLu

    The [Size] parameter still cannot use refer to https://clickhouse.yandex/docs/en/query_language/functions/date_time_functions/#timeslotsstarttime-duration91-size93

    SELECT timeSlots(toDateTime('2018-09-10 00:00:00'), toUInt32(6000), 300)

    Received exception from server (version 1.1.54370):
    Code: 42. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Number of arguments for function timeSlot doesn't match: passed 3, should be 2.

  4. added a commit that references this issue on Apr 30, 2020
  5. added 2 commits that reference this issue on Feb 12, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions