Skip to content

Add system test for insert/fetch of rows w/ nested schema. - #3140

Merged
tseaver merged 2 commits into
googleapis:masterfrom
tseaver:3029-bigquery-systest-insert-fetch-w-complex-schema
Mar 21, 2017
Merged

Add system test for insert/fetch of rows w/ nested schema.#3140
tseaver merged 2 commits into
googleapis:masterfrom
tseaver:3029-bigquery-systest-insert-fetch-w-complex-schema

Conversation

@tseaver

@tseavertseaver commented Mar 14, 2017

Copy link
Copy Markdown
Contributor

Uses #3118 as a base.

Derived from schema / data from @tswast.

Toward #3029.

@tseavertseaver added api: bigquery Issues related to the BigQuery API. testing labels Mar 14, 2017
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 14, 2017
@daspecster

Copy link
Copy Markdown
Contributor

@tseaver should be able to merge #3118 and rebase this off master.

Also, there's a lint error in this branch just FYI.

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@daspecster, @dhermes Any issues?

self.assertEqual(len(fetched), len(to_insert))

for found, expected in zip(sorted(fetched), sorted(to_insert)):
self.assertEqual(found[0], expected[0]) # Name

This comment was marked as spam.

This comment was marked as spam.


for found, expected in zip(sorted(fetched), sorted(to_insert)):
self.assertEqual(found[0], expected[0]) # Name
self.assertEqual(found[1], int(expected[1])) # Age

This comment was marked as spam.

This comment was marked as spam.


e_icon = base64.standard_b64decode(
e_spell['Icon'].encode('ascii'))
self.assertEqual(f_spell['Icon'], e_icon)

This comment was marked as spam.

This comment was marked as spam.

@@ -0,0 +1,66 @@
[

This comment was marked as spam.

This comment was marked as spam.

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@dhermes I think I answered your questions.

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@dhermes, @lukesneeringer, @daspecster Any remaining issues?

@lukesneeringer

Copy link
Copy Markdown
Contributor

None from me. :-)

@tseaver
tseaver merged commit 983783b into googleapis:masterMar 21, 2017
@tseaver
tseaver deleted the 3029-bigquery-systest-insert-fetch-w-complex-schema branch March 21, 2017 16:55
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…-insert-fetch-w-complex-schema
Add system test for insert/fetch of rows w/ nested schema.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tseaver@daspecster@lukesneeringer@dhermes@googlebot