Skip to content

Fix DateTime query parameters around Unix epoch - #409

Open
ruslandoga wants to merge 2 commits into
masterfrom
rd/test-pre-epoch-datetime
Open

Fix DateTime query parameters around Unix epoch#409
ruslandoga wants to merge 2 commits into
masterfrom
rd/test-pre-epoch-datetime

Conversation

@ruslandoga

@ruslandoga ruslandoga commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Fixes #385 by using Decimal to encode fractional DateTime query parameters as exact, timezone-independent Unix values with preserved precision.

Adds encoding and ClickHouse tests for pre/post-epoch boundaries, scalar and array parameters, explicit and session timezones, and documents ClickHouse’s current behavior of parsing numeric values such as -0.500000 as +0.500000.

Tested with mix test (476 passing).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pre-epoch fractional DateTime parameters are malformed

1 participant