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(bigquery): parse negative NUMERIC from arrow #11052

Conversation

alvarowolfx
Copy link
Contributor

The big.Int.SetBytes method interprets input as an unsigned number, so we lose sign information when parsing using. So Arrow decimal parsing code is simplified by just relying on big.Rat.SetString method for parsing.

Towards internal b/376149769

@alvarowolfx alvarowolfx requested review from a team as code owners October 29, 2024 17:27
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Oct 29, 2024
@alvarowolfx
Copy link
Contributor Author

cc @tfinlay-lightspeed

@alvarowolfx alvarowolfx added the automerge Merge the pull request once unit tests and other checks pass. label Oct 29, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit 83352c4 into googleapis:main Oct 29, 2024
5 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Oct 29, 2024
gcf-merge-on-green bot pushed a commit that referenced this pull request Oct 30, 2024
🤖 I have created a release *beep* *boop*
---


## [1.64.0](https://togithub.com/googleapis/google-cloud-go/compare/bigquery/v1.63.1...bigquery/v1.64.0) (2024-10-30)


### Features

* **bigquery/datatransfer:** Add scheduleOptionsV2 and Error fields for TransferConfig ([78d8513](https://togithub.com/googleapis/google-cloud-go/commit/78d8513f7e31c6ef118bdfc784049b8c7f1e3249))
* **bigquery/storage:** Add experimental ArrowData type and arrow_data field within AppendRowsRequest ([f0b05e2](https://togithub.com/googleapis/google-cloud-go/commit/f0b05e260435d5e8889b9a0ca0ab215fcde169ab))


### Bug Fixes

* **bigquery:** Handle null RANGE ([#11058](https://togithub.com/googleapis/google-cloud-go/issues/11058)) ([9979e72](https://togithub.com/googleapis/google-cloud-go/commit/9979e72b57947ec1e11d3e0c4a7e1ec335a490cf)), refs [#11047](https://togithub.com/googleapis/google-cloud-go/issues/11047)
* **bigquery:** Parse negative NUMERIC from arrow ([#11052](https://togithub.com/googleapis/google-cloud-go/issues/11052)) ([83352c4](https://togithub.com/googleapis/google-cloud-go/commit/83352c475681f596e0f1e811f8c2056aef6179b2))
* **bigquery:** Update google.golang.org/api to v0.203.0 ([8bb87d5](https://togithub.com/googleapis/google-cloud-go/commit/8bb87d56af1cba736e0fe243979723e747e5e11e))
* **bigquery:** WARNING: On approximately Dec 1, 2024, an update to Protobuf will change service registration function signatures to use an interface instead of a concrete type in generated .pb.go files. This change is expected to affect very few if any users of this client library. For more information, see https://togithub.com/googleapis/google-cloud-go/issues/11020. ([8bb87d5](https://togithub.com/googleapis/google-cloud-go/commit/8bb87d56af1cba736e0fe243979723e747e5e11e))


### Documentation

* **bigquery:** Link types on package docs ([#11036](https://togithub.com/googleapis/google-cloud-go/issues/11036)) ([c4af6fe](https://togithub.com/googleapis/google-cloud-go/commit/c4af6fe0962e0e96223744a09fd7b5a638cd92fd))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants