PLUGIN-296 Add integration test for SpannerSource getSchema from import Query#1084
PLUGIN-296 Add integration test for SpannerSource getSchema from import Query#1084ardian4 wants to merge 1 commit intocdapio:developfrom
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. |
| import org.junit.Assert; | ||
| import org.junit.Before; | ||
| import org.junit.BeforeClass; | ||
| import org.junit.Ignore; |
There was a problem hiding this comment.
Is this change intentional?
There was a problem hiding this comment.
code style removes this line automatically.
| .build(); | ||
|
|
||
| String applicationName = SPANNER_PLUGIN_NAME + "-testReadWithImportQuery"; | ||
| String nonExistentSinkTableName = "nonexistent_" + UUID.randomUUID().toString().replaceAll("-", "_"); |
There was a problem hiding this comment.
should delete this table at the end of the test
| .put("instance", "${instance}") | ||
| .put("database", "${database}") | ||
| .put("table", "${srcTable}") | ||
| .put("importQuery","Select ID, STRING_COL as StringCol, BOOL_COL from " + SOURCE_TABLE_NAME) |
There was a problem hiding this comment.
should include query with complex types as well - timestamp, array, bytes, date etc
There was a problem hiding this comment.
would be good to add import query as a macro as well.
There was a problem hiding this comment.
should include query with complex types as well - timestamp, array, bytes, date etc
we added complex types - left some out fields out as test for getting only selected fields from table instead all of them.
|
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. |
CuriousVini
left a comment
There was a problem hiding this comment.
LGTM 👍🏼
Please squash the commits
| import org.junit.Assert; | ||
| import org.junit.Before; | ||
| import org.junit.BeforeClass; | ||
| import org.junit.Ignore; |
fa3c0e2 to
a604f3e
Compare
|
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. |
Done |
JiraTicket: https://cdap.atlassian.net/browse/PLUGIN-296