-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: Added schema compatibility check functionality (SchemaCompact.java) #339
feat: Added schema compatibility check functionality (SchemaCompact.java) #339
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
7a36964
to
9bacc48
Compare
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java
Show resolved
Hide resolved
...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java
Show resolved
Hide resolved
dcb2727
to
e8b3e68
Compare
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
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 ℹ️ Googlers: Go here for more info. |
cd4d7ac
to
3671801
Compare
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
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.
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Show resolved
Hide resolved
...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java
Show resolved
Hide resolved
3a009dc
to
3a03d46
Compare
...querystorage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompactTest.java
Show resolved
Hide resolved
892a3eb
to
c1ceb60
Compare
...-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/SchemaCompact.java
Outdated
Show resolved
Hide resolved
</differences> |
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.
|
||
private SchemaCompact(BigQuery bigquery) { | ||
// TODO: Add functionality that allows SchemaCompact to build schemas. |
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?
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.
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
…ma types are supported by BQ.
…s on scalar types and oneof types
…th tests to account for BQRecord
…to schemas and BQ schemas.
…Info as SchemaCheck does not allow BQ fields with no field mode.
c15a329
to
a6e3867
Compare
🤖 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).
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.