Skip to content

Allow for negative epoch seconds#111938

Merged
elasticsearchmachine merged 4 commits intoelastic:mainfrom
rjernst:time/zdt_nanos_negative
Aug 20, 2024
Merged

Allow for negative epoch seconds#111938
elasticsearchmachine merged 4 commits intoelastic:mainfrom
rjernst:time/zdt_nanos_negative

Conversation

@rjernst
Copy link
Copy Markdown
Member

@rjernst rjernst commented Aug 15, 2024

The change to allow nanoseconds in ZonedDateTime split the epoch seconds from the nanosecond subelement. However, the epoch seconds were then written as a vlong, when in fact they could be negative if the date is before epoch. This commit changes the format to use zlong instead, which supports negatives.

closes #111923

The change to allow nanoseconds in ZonedDateTime split the epoch seconds
from the nanosecond subelement. However, the epoch seconds were then
written as a vlong, when in fact they could be negative if the date is
before epoch. This commit changes the format to use zlong instead, which
supports negatives.

closes elastic#111923
@rjernst rjernst added >non-issue :Core/Infra/Core Core issues without another label labels Aug 15, 2024
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v8.16.0 labels Aug 15, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@rjernst rjernst requested a review from a team August 15, 2024 19:26
Copy link
Copy Markdown
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rjernst rjernst added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Aug 20, 2024
@elasticsearchmachine elasticsearchmachine merged commit 29f9ad9 into elastic:main Aug 20, 2024
@rjernst rjernst deleted the time/zdt_nanos_negative branch August 20, 2024 19:45
lkts pushed a commit to lkts/elasticsearch that referenced this pull request Aug 20, 2024
The change to allow nanoseconds in ZonedDateTime split the epoch seconds
from the nanosecond subelement. However, the epoch seconds were then
written as a vlong, when in fact they could be negative if the date is
before epoch. This commit changes the format to use zlong instead, which
supports negatives.

closes elastic#111923
elasticsearchmachine pushed a commit that referenced this pull request Aug 26, 2024
Unmute SQL CSV Spec tests fixed by
#111938
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
The change to allow nanoseconds in ZonedDateTime split the epoch seconds
from the nanosecond subelement. However, the epoch seconds were then
written as a vlong, when in fact they could be negative if the date is
before epoch. This commit changes the format to use zlong instead, which
supports negatives.

closes elastic#111923
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Sep 5, 2024
The change to allow nanoseconds in ZonedDateTime split the epoch seconds
from the nanosecond subelement. However, the epoch seconds were then
written as a vlong, when in fact they could be negative if the date is
before epoch. This commit changes the format to use zlong instead, which
supports negatives.

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

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] JdbcCsvSpecIT class failing

3 participants