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

Time unit mismatch issue when calling Bigquery Push API #3613

Closed
phil-park opened this issue May 1, 2023 · 0 comments · Fixed by #3614
Closed

Time unit mismatch issue when calling Bigquery Push API #3613

phil-park opened this issue May 1, 2023 · 0 comments · Fixed by #3614

Comments

@phil-park
Copy link
Contributor

Expected Behavior

When data is ingested with the push api, the same time series data must be added to the online store and the offline store (bigquery).

Current Behavior

When calling the Push API with the BigQuery Offline Store, if the timestamp field exists, the pyarrow timestamp unit in the code defaults to us (microsecond).

However, when bigquery load_table is executed, the timestamp column operates in ns (nano second), so the unit is inconsistent.

Because there is a time difference of 1000 times, bigquery actually inputs 1/1000 times the time, so if you put the current time, the old time of the 1970s is entered.

Steps to reproduce

After creating Bigquery Push Source with timestamp field, call Push API (w/ONLINE_AND_OFFLINE).

Specifications

  • Version:
  • Platform:
  • Subsystem: BigQuery

Possible Solution

When converting to pyarrow schema, the time unit is input according to the offline store.

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

Successfully merging a pull request may close this issue.

1 participant