spring-attic / spring-cloud-gcp

Integration for Google Cloud Platform APIs with Spring
Apache License 2.0
704 stars 694 forks source link

(Cherrypick) Allow for manually specifying BigQuery table schema #2588

Closed dzou closed 3 years ago

dzou commented 3 years ago

This adds an interface method to the BigQueryTemplate which allows you to specify an explicit schema if you don't want to rely on schema autodetection on your dataset.

Fixes https://github.com/spring-cloud/spring-cloud-gcp/issues/2576

(cherry picked from commit 283cd16effa144262c57846e55c6a6169ba0dbc1) Source: https://github.com/GoogleCloudPlatform/spring-cloud-gcp/pull/108

sonarcloud[bot] commented 3 years ago

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_151) you have used to run this analysis is deprecated and we will stop accepting it accepting it soon.Please update to at least Java 11. Read more here

codecov[bot] commented 3 years ago

Codecov Report

Merging #2588 (67a0ab0) into master (22a9608) will decrease coverage by 7.33%. The diff coverage is 10.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2588      +/-   ##
============================================
- Coverage     81.44%   74.11%   -7.34%     
+ Complexity     2397     2171     -226     
============================================
  Files           267      267              
  Lines          7794     7812      +18     
  Branches        807      808       +1     
============================================
- Hits           6348     5790     -558     
- Misses         1103     1645     +542     
- Partials        343      377      +34     
Flag Coverage Δ Complexity Δ
integration ? ?
unittests 74.11% <10.00%> (-0.15%) 0.00 <2.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...work/cloud/gcp/bigquery/core/BigQueryTemplate.java 0.00% <0.00%> (-71.70%) 0.00 <0.00> (-8.00)
...tegration/outbound/BigQueryFileMessageHandler.java 0.00% <0.00%> (-56.15%) 0.00 <0.00> (-10.00)
...ure/pubsub/GcpPubSubEmulatorAutoConfiguration.java 88.88% <75.00%> (-11.12%) 3.00 <2.00> (+1.00) :arrow_down:
...gcp/secretmanager/SecretManagerPropertySource.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-4.00%)
...a/spanner/repository/query/SpannerQueryMethod.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-6.00%)
...retmanager/SecretManagerPropertySourceLocator.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...figure/config/GcpConfigBootstrapConfiguration.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...e/spanner/GcpSpannerEmulatorAutoConfiguration.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...epository/config/SpannerRepositoriesRegistrar.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
...ository/config/DatastoreRepositoriesRegistrar.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
... and 55 more

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 a1e9a2e...67a0ab0. Read the comment docs.