Skip to content

TimePartitioning printable representation is not evaluable #109

Closed
@francois-baptiste

Description

@francois-baptiste

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'

Metadata

Metadata

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions