Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: change %f to microseconds for experimental_str{f,p}time #46263

Merged

Conversation

otan
Copy link
Contributor

@otan otan commented Mar 18, 2020

Resolves #45881

Release justification: low risk, high benefit changes to existing
functionality (open to waiting until 20.2)

Release note (bug fix, sql change): Previously, experimental_strftime
and experimental_strptime used the non-POSIX standard %f for nanosecond
display. However, as cockroach only supports up to microsecond precision
and python's strftime has %f to microsecond, we have similarly switched
%f to use microsecond instead of nanosecond precision.

@otan otan requested a review from knz March 18, 2020 19:03
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan force-pushed the experimental_strftime_6digf branch from 8c2ca53 to d36a811 Compare March 18, 2020 19:06
@knz
Copy link
Contributor

knz commented Mar 18, 2020

i think you haven't committed the vendor change properly

@otan otan force-pushed the experimental_strftime_6digf branch from d36a811 to 585b71d Compare March 18, 2020 19:10
@otan
Copy link
Contributor Author

otan commented Mar 18, 2020

i think you haven't committed the vendor change properly

yeah and once i committed it i couldn't add it again without the whole commit :\ submodules are weird

@otan
Copy link
Contributor Author

otan commented Mar 19, 2020

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 19, 2020

Build failed (retrying...)

@craig
Copy link
Contributor

craig bot commented Mar 19, 2020

Build failed

@otan
Copy link
Contributor Author

otan commented Mar 19, 2020

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 19, 2020

Merge conflict (retrying...)

@otan
Copy link
Contributor Author

otan commented Mar 19, 2020

bors r-

merge conflict grumble

@craig
Copy link
Contributor

craig bot commented Mar 19, 2020

Canceled

@otan otan force-pushed the experimental_strftime_6digf branch from 585b71d to aaf50cd Compare March 19, 2020 18:12
Release justification: low risk, high benefit changes to existing
functionality (open to waiting until 20.2)

Release note (bug fix, sql change): Previously, experimental_strftime
and experimental_strptime used the non-POSIX standard %f for nanosecond
display. However, as cockroach only supports up to microsecond precision
and python's strftime has %f to microsecond, we have similarly switched
%f to use microsecond instead of nanosecond precision.
@otan otan force-pushed the experimental_strftime_6digf branch from aaf50cd to fc3b498 Compare March 19, 2020 18:18
@otan
Copy link
Contributor Author

otan commented Mar 19, 2020

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 19, 2020

Build succeeded

@craig craig bot merged commit b651389 into cockroachdb:master Mar 19, 2020
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.

sql: strftime nano and microseconds notation
3 participants