Fix datastore to bigquery#90
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@googlebot I signed it! |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Okey...and what should I do? Do I need to make any other changes before you review it? 🤔 |
|
Thanks for the PR @vbambuch - Ill take a look at this shortly |
|
Great! Thank you @sabhyankar. |
sabhyankar
left a comment
There was a problem hiding this comment.
Hi @vbambuch - I have left some feedback on the PR. Note that we would want the change to be fully backward compatible. i.e The pipeline should work even when the user chooses to run this without the new --jsonPath flag.
Were you able to execute the template, with and without the flag? In the latter case, you would be writing to an existing table.
| void setOutputTableSpec(ValueProvider<String> value); | ||
|
|
||
| @Validation.Required | ||
| @Description("JSON file with BigQuery Schema description") |
There was a problem hiding this comment.
Looking through the path, this is the actual stringified json schema and not exactly the path to the schema.
|
|
||
| void setOutputTableSpec(ValueProvider<String> value); | ||
|
|
||
| @Validation.Required |
There was a problem hiding this comment.
IMO, this will not have any effect on a parameter wrapped inside the ValueProvider. We should remove this and the other places this annotation is used.
| .withoutValidation() | ||
| .withSchema( | ||
| ValueProvider.NestedValueProvider.of( | ||
| options.getJSONPath(), |
There was a problem hiding this comment.
What happens when the user doesnt provide this json? Note the @Required annotation will not be useful here.
| "WriteBigQuery", | ||
| BigQueryIO.writeTableRows() | ||
| .withoutValidation() | ||
| .withSchema( |
There was a problem hiding this comment.
Instead why not use withJsonSchema and having to do all that parsing.
| private static final String BIGQUERY_SCHEMA = "BigQuery Schema"; | ||
| private static final String NAME = "name"; | ||
| private static final String TYPE = "type"; | ||
| private static final String MODE = "mode"; |
There was a problem hiding this comment.
This would not be needed if you were to use withJsonSchema
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
* Add IT for Cassandra (#86) * Add IT for Cassandra Reverse Replication * Added IT Fixes * Added IT fixes * removed logger * removed unwanted system log * Handle Catch * Handle with safehandler * Running load test * revert unwanted commit * Added IT FIXES * Added UT and removed unwanted SOUT * Added One to Many Datatype Transformation for IT (#90) Added One to Many Datatype Transformation for IT Fix PR review comments * Handle IT for MYSQL * Added ByteBuffer TO BigInteger * Cassandra rr custom transfornation it test (#96) * PR Review Comments (#97) * Splotless fixes * Handle Retry Missing Exception Category * Rebase Issue fixes --------- Co-authored-by: pawankashyapollion <v-pawan.kumar@ollion.com>
withSchemainWriteBigQueryjob part