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:update schema compat check with backend type changes #522

Merged
merged 2 commits into from
Sep 8, 2020
Merged

fix:update schema compat check with backend type changes #522

merged 2 commits into from
Sep 8, 2020

Conversation

yirutang
Copy link
Contributor

@yirutang yirutang commented Sep 4, 2020

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 4, 2020
@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #522 into master will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #522      +/-   ##
============================================
- Coverage     78.68%   78.60%   -0.08%     
- Complexity      662      663       +1     
============================================
  Files            59       59              
  Lines          3790     3786       -4     
  Branches        255      253       -2     
============================================
- Hits           2982     2976       -6     
- Misses          692      693       +1     
- Partials        116      117       +1     
Impacted Files Coverage Δ Complexity Δ
...bigquery/storage/v1alpha2/SchemaCompatibility.java 91.30% <100.00%> (-0.22%) 99.00 <5.00> (+1.00) ⬇️
.../cloud/bigquery/storage/v1alpha2/StreamWriter.java 83.75% <0.00%> (-0.43%) 39.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c30d52e...d3a2898. Read the comment docs.

@product-auto-label product-auto-label bot added the api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. label Sep 5, 2020
@@ -348,6 +343,9 @@ private void protoFieldTypeIsCompatibleWithBQFieldType(
case "NUMERIC":
match = isCompatibleWithBQNumeric(protoType);
break;
case "BIGNUMERIC":
match = isCompatibleWithBQNumeric(protoType);
Copy link
Contributor

Choose a reason for hiding this comment

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

please add test for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed it for now, it seems the value is not available in external library yet.

@stephaniewang526 stephaniewang526 merged commit 2fcae4f into googleapis:master Sep 8, 2020
@yirutang yirutang deleted the compatfix branch December 10, 2020 23:30
shubhwip pushed a commit to shubhwip/java-bigquerystorage that referenced this pull request Oct 7, 2023
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-04-12 15:37:38,528 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-storage-nio/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-04-12 15:37:39,934 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/8d99438d-ead4-4045-8087-9b7540c7f814/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants