Skip to content

Fix a bug about toDateTimeOrNull with negative argument#90490

Merged
yariks5s merged 24 commits intomasterfrom
yarik/fix-todatetime-null-bug
Dec 9, 2025
Merged

Fix a bug about toDateTimeOrNull with negative argument#90490
yariks5s merged 24 commits intomasterfrom
yarik/fix-todatetime-null-bug

Conversation

@yariks5s
Copy link
Member

@yariks5s yariks5s commented Nov 20, 2025

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixes a bug where toDateTimeOrNull of a negative argument returns NULL.

@clickhouse-gh
Copy link
Contributor

clickhouse-gh bot commented Nov 20, 2025

Workflow [PR], commit [b9d11e6]

Summary:

job_name test_name status info comment
Stateless tests (amd_msan, parallel) failure
00816_long_concurrent_alter_column FAIL cidb, issue
03403_mv_errors FAIL cidb, issue
Integration tests (amd_tsan, 1/6) failure
test_storage_nats/test_nats_jet_stream.py::test_nats_overloaded_insert FAIL cidb, issue
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting in Function_arrayElement: the query: FAIL cidb, issue
BuzzHouse (amd_tsan) failure
Segmentation fault (STID: 3075-3638) FAIL cidb

@clickhouse-gh clickhouse-gh bot added the pr-bugfix Pull request with bugfix, not backported by default label Nov 20, 2025
@yariks5s yariks5s marked this pull request as draft November 20, 2025 13:22
@yariks5s yariks5s marked this pull request as ready for review December 2, 2025 15:45
@alsugiliazova
Copy link
Contributor

This pr will also fix this #87601

robot-ch-test-poll3 added a commit that referenced this pull request Dec 10, 2025
Cherry pick #90490 to 25.8: Fix a bug about `toDateTimeOrNull` with negative argument
robot-clickhouse added a commit that referenced this pull request Dec 10, 2025
robot-ch-test-poll3 added a commit that referenced this pull request Dec 10, 2025
Cherry pick #90490 to 25.9: Fix a bug about `toDateTimeOrNull` with negative argument
robot-clickhouse added a commit that referenced this pull request Dec 10, 2025
robot-ch-test-poll3 added a commit that referenced this pull request Dec 10, 2025
Cherry pick #90490 to 25.10: Fix a bug about `toDateTimeOrNull` with negative argument
robot-clickhouse added a commit that referenced this pull request Dec 10, 2025
robot-ch-test-poll3 added a commit that referenced this pull request Dec 10, 2025
Cherry pick #90490 to 25.11: Fix a bug about `toDateTimeOrNull` with negative argument
robot-clickhouse added a commit that referenced this pull request Dec 10, 2025
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Dec 10, 2025
clickhouse-gh bot added a commit that referenced this pull request Dec 10, 2025
Backport #90490 to 25.11: Fix a bug about `toDateTimeOrNull` with negative argument
clickhouse-gh bot added a commit that referenced this pull request Dec 10, 2025
Backport #90490 to 25.9: Fix a bug about `toDateTimeOrNull` with negative argument
yariks5s added a commit that referenced this pull request Dec 10, 2025
Backport #90490 to 25.10: Fix a bug about `toDateTimeOrNull` with negative argument
yariks5s added a commit that referenced this pull request Dec 10, 2025
Backport #90490 to 25.8: Fix a bug about `toDateTimeOrNull` with negative argument
zvonand added a commit to Altinity/ClickHouse that referenced this pull request Dec 14, 2025
Antalya 25.8 Backport of ClickHouse#90490: Fix a bug about `toDateTimeOrNull` with negative argument
zvonand pushed a commit to Altinity/ClickHouse that referenced this pull request Dec 15, 2025
Backport ClickHouse#90490 to 25.8: Fix a bug about `toDateTimeOrNull` with negative argument
@fm4v
Copy link
Member

fm4v commented Dec 15, 2025

@yariks5s is it backward incompatible change?

@Avogar
Copy link
Member

Avogar commented Dec 15, 2025

No it's not. #86184 was and this PR reverts back most of the changed behaviour that could lead to changes in user queries.

@fm4v
Copy link
Member

fm4v commented Dec 15, 2025

@Avogar thanks!

zvonand added a commit to Altinity/ClickHouse that referenced this pull request Dec 17, 2025
25.8.12 Stable backport of ClickHouse#90490: Fix a bug about `toDateTimeOrNull` with negative argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants