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

[Bug]: Writing BigNumeric from BigQuery to BigTable results in Java exception message #453

Open
Ahdw opened this issue Aug 26, 2022 · 3 comments
Labels

Comments

@Ahdw
Copy link

Ahdw commented Aug 26, 2022

Related Template(s)

bigquery-to-bigtable

What happened?

In BigQuery there's column of BigNumeric datatype, with the value 99999999999999999999999999999999999.

This BigQuery-to-BigTable writes the column to BigTable without throwing any exception, however, when read from BigTable, the value becomes java.nio.HeapBytesBuffer[pos=0 lim=32 cap=32]

I used cbt read and BigTable's Python library to read that value, and they are all same.

Beam Version

Newer than 2.35.0

Relevant log output

No response

@Ahdw Ahdw added bug Something isn't working needs triage p2 labels Aug 26, 2022
@ee07dazn
Copy link

Found the same issue using Beam version 2.48 and 2.53 as well.

@ego157
Copy link

ego157 commented Aug 16, 2024

Same issue when writing BYTES BigQuery column into BigTable (Apache Beam 2.57)
For context: I'm trying to write numbers into BigTable to be compatible with BigTable's Increments (big-endian). If BQ has INT field this template will write it as "10" (base10 string representation), if BQ field is BYTES, template write "java.nio.HeapBytesBuffer[pos=0 lim=8 cap=8]" as BigTable value

Copy link

This issue has been marked as stale due to 180 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the issue at any time. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants