GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Added schema compatibility check functionality (SchemaCompact.java) by allenc3 · Pull Request #339 · googleapis/java-bigquerystorage

This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Conversation

@allenc3

@allenc3 allenc3 commented Jun 10, 2020

Copy link
Copy Markdown
Contributor

Finished schema compatibility check class, and added a proto file that is used for testing.

Modified WriterCache.java, DirectWriterTest.java, and WriterCacheTest.java because checking for schema compatibility requires three parameters instead of two, and so the "check" method requires three parameters.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 10, 2020
@codecov

codecov Bot commented Jun 10, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #339 into master will increase coverage by 0.84%.
The diff coverage is 93.70%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #339      +/-   ##
============================================
+ Coverage     75.63%   76.47%   +0.84%     
- Complexity      465      555      +90     
============================================
  Files            54       54              
  Lines          3123     3261     +138     
  Branches        175      196      +21     
============================================
+ Hits           2362     2494     +132     
- Misses          655      658       +3     
- Partials        106      109       +3     
Impacted Files Coverage Δ Complexity Δ
...cloud/bigquery/storage/v1alpha2/SchemaCompact.java 91.19% <93.70%> (+15.00%) 96.00 <91.00> (+89.00)
.../cloud/bigquery/storage/v1alpha2/StreamWriter.java 81.07% <0.00%> (+0.70%) 34.00% <0.00%> (+1.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 8d42ecd...a6e3867. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@allenc3
allenc3 force-pushed the SchemaCompactNoAnnotatation branch from 7a36964 to 9bacc48 Compare June 11, 2020 15:57
yirutang
yirutang reviewed Jun 11, 2020
View reviewed changes
Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-bigquerystorage/clirr-ignored-differences.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@allenc3
allenc3 force-pushed the SchemaCompactNoAnnotatation branch from dcb2727 to e8b3e68 Compare June 12, 2020 15:48
yirutang
yirutang reviewed Jun 12, 2020
View reviewed changes
Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

HowAreYouMyFriend
HowAreYouMyFriend suggested changes Jun 12, 2020
View reviewed changes
Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@googlebot

googlebot commented Jun 15, 2020

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to determine that you authored the commits in this PR. Maybe you used a different email address in the git commits than was used to sign the CLA? If someone else authored these commits, then please add them to this pull request and have them confirm that they're okay with them being contributed to Google. If there are co-authors, make sure they're formatted properly.

In order to pass this check, please resolve this problem and then comment@googlebot I fixed it... If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Jun 15, 2020
@allenc3
allenc3 force-pushed the SchemaCompactNoAnnotatation branch from cd4d7ac to 3671801 Compare June 15, 2020 18:40
@googlebot

googlebot commented Jun 15, 2020

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jun 15, 2020
yirutang
yirutang reviewed Jun 15, 2020
View reviewed changes

@yirutang yirutang left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Almost there, just one more test case requested.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@allenc3
allenc3 force-pushed the SchemaCompactNoAnnotatation branch 2 times, most recently from 3a009dc to 3a03d46 Compare June 16, 2020 17:04
yirutang
yirutang approved these changes Jun 16, 2020
View reviewed changes
Comment thread ...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@allenc3
allenc3 force-pushed the SchemaCompactNoAnnotatation branch 2 times, most recently from 892a3eb to c1ceb60 Compare June 17, 2020 19:25
HowAreYouMyFriend
HowAreYouMyFriend approved these changes Jun 17, 2020
View reviewed changes
Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@stephaniewang526 stephaniewang526 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 18, 2020
stephaniewang526
stephaniewang526 suggested changes Jun 18, 2020
View reviewed changes
Comment thread google-cloud-bigquerystorage/clirr-ignored-differences.xml Outdated
<method>boolean awaitTermination(long, java.util.concurrent.TimeUnit) </method>
</difference>
</differences> No newline at end of file
</differences>

@stephaniewang526 stephaniewang526 Jun 18, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nothing has changed - please revert this file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Descriptors.FieldDescriptor.Type.ENUM)));

private SchemaCompact(BigQuery bigquery) {
// TODO: Add functionality that allows SchemaCompact to build schemas.

@stephaniewang526 stephaniewang526 Jun 18, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

is there a reason for us to keep this TODO here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@allenc3 allenc3 Jun 18, 2020

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Yup, Yiru asked me to leave that there as that should be a functionality we should add in, but not related to the current PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@stephaniewang526 stephaniewang526 Jun 18, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

ok sg

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 18, 2020
cheallen and others added 6 commits June 18, 2020 15:34
@cheallen @allenc3
Protobuf and annotations working; first test that chekcs if user sche…
059dbf8
…ma types are supported by BQ.
@allenc3
Halfway through basic type checking of nonsupported types; wrote test…
38d779e
…s on scalar types and oneof types
@allenc3
Almost finished detecting cycles in protos.
7888b32
@allenc3
Finished checking for nonsupported types, added zetasql package as de…
c6b939c
…pendency in pom.
@allenc3
Reformatted to pass checkstyle.
cdff32f
@allenc3
Added all BQ compatibility checks and started working on main checkin…
087278f
…g method
allenc3 added 23 commits June 18, 2020 15:34
@allenc3
Added field mode checks
0ce7d3a
@allenc3
Refactored field option checking code.
816d3d0
@allenc3
All current tests work.
3219d9e
@allenc3
Finished BQInteger testing; need to add testing for all types and ann…
bc390e3
…otations.
@allenc3
Removing zetasql related code
eabfd69
@allenc3
Removed all zetasql related code
865c582
@allenc3
Finished basic type checking and added tests, need to add more in-dep…
0590580
…th tests to account for BQRecord
@allenc3
feat: Added SchemaCompact class that checks compatibility between pro…
1896159
…to schemas and BQ schemas.
@allenc3
Changed some files to make compilation/testing work
106fe4c
@allenc3
Added to clirr-ignored-differences to ignore differences in check met…
ff556a2
…hod signature
@allenc3
Changed clirr ignored method to be the original method signature
5f7287b
@allenc3
Fixed code for pull request
c94505c
@allenc3
Fixed linting errors
ef3dfd7
@allenc3
Fixed all PR suggestions
301f070
@allenc3
Merged isSupported and isCompatible, fixed minor issues according to …
822b3ef
…PR suggestions.
@allenc3
Removed duplicate commits
f4c4da5
@allenc3
Fix linting
c865802
@allenc3
Added a testcase for field name casing.
8dcd0c0
@allenc3
Added Integration tests, also added a field mode for footype in table…
2e9a30c
…Info as SchemaCheck does not allow BQ fields with no field mode.
@allenc3
Fixed linting
74fb3b5
@allenc3
Fixed testing errors
013a9db
@allenc3
Fixing test pt 2
5fbd899
@allenc3
Reverted clirr-ignored-differences.ml
a6e3867
@allenc3
allenc3 force-pushed the SchemaCompactNoAnnotatation branch from c15a329 to a6e3867 Compare June 18, 2020 15:35
stephaniewang526
stephaniewang526 approved these changes Jun 18, 2020
View reviewed changes
@allenc3
allenc3 marked this pull request as ready for review June 18, 2020 15:44
@stephaniewang526 stephaniewang526 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 18, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 18, 2020
@stephaniewang526
stephaniewang526 merged commit bc2d8cc into googleapis:master Jun 18, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jun 18, 2020
@release-please
chore: release 0.134.0 (#359)
27c55e9
🤖 I have created a release \*beep\* \*boop\* 
---
## [0.134.0](https://www.github.com/googleapis/java-bigquerystorage/compare/v0.133.4...v0.134.0) (2020-06-18)


### Features

* Added schema compatibility check functionality (SchemaCompact.java) ([#339](https://www.github.com/googleapis/java-bigquerystorage/issues/339)) ([bc2d8cc](https://www.github.com/googleapis/java-bigquerystorage/commit/bc2d8cc82adeeddb21aeb9845e0883d369101513))


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.1 ([#346](https://www.github.com/googleapis/java-bigquerystorage/issues/346)) ([9db4c47](https://www.github.com/googleapis/java-bigquerystorage/commit/9db4c475118b03b323b4dc502ec0634692e9dea3))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@stephaniewang526 stephaniewang526 stephaniewang526 approved these changes
@yirutang yirutang yirutang approved these changes
@HowAreYouMyFriend HowAreYouMyFriend HowAreYouMyFriend approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@allenc3 @googlebot @stephaniewang526 @yirutang @HowAreYouMyFriend @yoshi-kokoro @cheallen
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.