Skip to content

Fails to deserialize DateTime('Fixed/UTC±HH:MM:SS') results #702

@itssimon

Description

@itssimon

Describe the bug

clickhouse-connect fails to deserialize results of type DateTime('Fixed/UTC±HH:MM:SS'), even though ClickHouse itself executes the same query successfully.

Code example

import clickhouse_connect

client = clickhouse_connect.get_client(host="localhost", port=8123)

result = client.query(
    "SELECT toStartOfInterval(now(), toIntervalHour(1), 'Fixed/UTC+05:30:00') AS ts"
)
print(result.first_item)
InternalError: Unrecognized ClickHouse type base: DateTime name: DateTime('Fixed/UTC+05:30:00')

The exact same SQL works over plain HTTP, for example:

curl -s "http://localhost:8123/?user=...&password=..." \
  --data-binary "SELECT toStartOfInterval(now(), toIntervalHour(1), 'Fixed/UTC+05:30:00') AS ts FORMAT JSONEachRow"

which returns:

{"ts":"2026-04-01 17:00:00"}

Configuration

Environment

  • clickhouse-connect version: 0.15.0
  • Python version: 3.13.11
  • Operating system: macOS

ClickHouse server

  • ClickHouse Server version: 25.8.16

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions