Skip to content

Commit

Permalink
use var for numeric type in SQL system test
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast committed May 17, 2018
1 parent bf9edab commit 84e005d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bigquery/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,7 @@ def _generate_standard_sql_types_examples(self):
stamp_microseconds = stamp + '.250000'
zoned = naive.replace(tzinfo=UTC)
zoned_microseconds = naive_microseconds.replace(tzinfo=UTC)
numeric = decimal.Decimal('123456789.123456789')
return [
{
'sql': 'SELECT 1',
Expand Down Expand Up @@ -1007,8 +1008,8 @@ def _generate_standard_sql_types_examples(self):
'expected': naive.time(),
},
{
'sql': 'SELECT NUMERIC "123456789.123456789"',
'expected': decimal.Decimal('123456789.123456789'),
'sql': 'SELECT NUMERIC "%s"' % (numeric,),
'expected': numeric,
},
{
'sql': 'SELECT (1, 2)',
Expand Down

0 comments on commit 84e005d

Please sign in to comment.