Closed
Description
Environment details
- OS type and version:
All
- Python version:
All
- pip version:
All
- google-cloud-bigquery version:
1.24.0
Code example
from google.cloud.bigquery import *
eval(TimePartitioning(field='myfield').__repr__())
Stack trace
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-2-2705370d2a8c> in <module>
1 from google.cloud.bigquery import *
----> 2 eval(TimePartitioning(field='myfield').__repr__())
<string> in <module>
NameError: name 'myfield' is not defined
Code example
from google.cloud.bigquery import *
eval(TimePartitioning(field='myfield',type='DAY').__repr__())
Stack trace
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-4733c3100f2b> in <module>
1 from google.cloud.bigquery import *
----> 2 eval(TimePartitioning(field='myfield',type='DAY').__repr__())
TypeError: __init__() got an unexpected keyword argument 'type'