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

fix a tz bug when validate ErrTooHighTimestampPrecision #1049

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

Yifeng-Sigma
Copy link
Contributor

Description

We got error 268003 (22007): Cannot convert timestamp 2021-01-01 01:24:54 +0000 UTC in column Date to Arrow.Timestamp data type due to too high precision. Please use context with WithOriginalTimestamp. However this should be within the range that nanosecond supports.

Notice that the date is the first day of the year, that points to where the problem is. The right side is always in UTC while the left side is from arrowSnowflakeTimestampToTime() and can have a timezone.

Checklist

  • Code compiles correctly
  • Run make fmt to fix inconsistent formats
  • Run make lint to get lint errors and fix all of them
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

@Yifeng-Sigma Yifeng-Sigma requested a review from a team as a code owner February 7, 2024 01:13
@Yifeng-Sigma
Copy link
Contributor Author

@sfc-gh-pfus could you please re-trigger the tests? I think they might be flaky?

@sfc-gh-dheyman
Copy link
Collaborator

Hi @Yifeng-Sigma, I rerun the tests and it seems that everything is passing.

@Yifeng-Sigma
Copy link
Contributor Author

Hi @Yifeng-Sigma, I rerun the tests and it seems that everything is passing.

@sfc-gh-dheyman-1 Thank you! can we merge this?

@sfc-gh-dheyman sfc-gh-dheyman merged commit ca47a46 into snowflakedb:master Feb 20, 2024
34 of 62 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2024
@sfc-gh-dheyman
Copy link
Collaborator

Thank you @Yifeng-Sigma for fixing this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants