Skip to content

tests: fix 00926_adaptive_index_granularity_pk/00489_pk_subexpression flakiness#40075

Merged
rschu1ze merged 1 commit intoClickHouse:masterfrom
azat:tests/partial-tz
Aug 11, 2022
Merged

tests: fix 00926_adaptive_index_granularity_pk/00489_pk_subexpression flakiness#40075
rschu1ze merged 1 commit intoClickHouse:masterfrom
azat:tests/partial-tz

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Aug 10, 2022

It is possible for toStartOfMinute() to give different result for 0 and
59, for partial timezones (timezone that does not starts from 00:00,
like Africa/Monrovia).

Before #36656 it fails for another reason, because of overflows 1, but
now it fails because it simply return different minutes.

Simply pin the UTC there.

Fixes: #37786 (cc @tavplubix )

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

… flakiness

It is possible for toStartOfMinute() to give different result for 0 and
59, for partial timezones (timezone that does not starts from 00:00,
like Africa/Monrovia).

Before ClickHouse#36656 it fails for another reason, because of overflows [1], but
now it fails because it simply return different minutes.

  [1]: ClickHouse#29953 (comment)

Simply pin the UTC there.

Fixes: ClickHouse#37786
Signed-off-by: Azat Khuzhin <[email protected]>
@azat azat marked this pull request as ready for review August 10, 2022 18:34
@robot-ch-test-poll robot-ch-test-poll added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 10, 2022
@rschu1ze rschu1ze self-assigned this Aug 10, 2022
@rschu1ze rschu1ze merged commit 859e443 into ClickHouse:master Aug 11, 2022
@azat azat deleted the tests/partial-tz branch August 11, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

00926_adaptive_index_granularity_pk and 00489_pk_subexpression are flaky

4 participants