Skip to content

Conversation

@tswast
Copy link
Contributor

@tswast tswast commented May 15, 2018

Support for BigQuery's NUMERIC type.

Note that this PR was already reviewed in #4874 for when this feature was still in alpha.

Originally authored by @ElliottBrossard

@tswast tswast requested a review from tseaver May 15, 2018 16:17
@tswast tswast requested a review from lukesneeringer as a code owner May 15, 2018 16:17
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 15, 2018
@tswast tswast requested review from alixhami and theacodes May 15, 2018 22:31
{
'sql': 'SELECT NUMERIC "123456789.123456789"',
'expected': decimal.Decimal('123456789.123456789'),
},

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented May 17, 2018

@tswast CI fails due to #5304. Can you rebase to pick up the fixes from PR #5333?

ElliottBrossard and others added 3 commits May 17, 2018 11:25
)

* Support for BigQuery's NUMERIC type, which is currently in alpha.

* Remove unused import from test_query.py.

* Fix newly-added system tests; all system and unit tests pass now.

Add unit tests to reach what should be 100% coverage for new code.

* Fix lint warning and rename shadowed unit test.

* Add unit test that NUMERIC types are encoded correctly in insert_rows
@tswast tswast force-pushed the bigquery-numeric branch from cb58cea to 84e005d Compare May 17, 2018 18:26
@tswast
Copy link
Contributor Author

tswast commented May 17, 2018

Rebased.

@tswast tswast merged commit 4cea949 into master May 17, 2018
@tswast tswast deleted the bigquery-numeric branch May 17, 2018 19:43
@tswast tswast mentioned this pull request Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants