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

NO-JIRA Missing now64 precision of 9 #202

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

andrescrz
Copy link
Collaborator

@andrescrz andrescrz commented Sep 10, 2024

Details

Minor bug discovered during the query plan analysis task.

The Span creation endpoint was not setting the proper precision for created_at field.

Fixed by adding precision 9 to the now64 call.

Additionally, run spotless to fix formatting issues.

Issues

N/A

Testing

  • Passed CI build.

Documentation

N/A

@andrescrz andrescrz requested a review from a team as a code owner September 10, 2024 09:45
@andrescrz andrescrz self-assigned this Sep 10, 2024
@andrescrz andrescrz added the bug Something isn't working label Sep 10, 2024
@@ -155,7 +154,7 @@ INSERT INTO spans(
:metadata as metadata,
:tags as tags,
mapFromArrays(:usage_keys, :usage_values) as usage,
now64() as created_at,
now64(9) as created_at,
Copy link
Contributor

Choose a reason for hiding this comment

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

It gets truncated by the column, no?

Copy link
Collaborator Author

@andrescrz andrescrz Sep 10, 2024

Choose a reason for hiding this comment

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

It just uses the default, which is 3 (milliseconds) whereas everywhere else we use 9 (nanoseconds). See:

@andrescrz andrescrz merged commit ef4c23d into main Sep 10, 2024
2 checks passed
@andrescrz andrescrz deleted the andrescrz/NO-JIRA-missing-now64-precision branch September 10, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants