Skip to content

Query default max_rows of sys.maxint does not work on 64bit python #14

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. job = client.Query('SELECT mmsi FROM [strata_sq_pos.pos123] GROUP BY mmsi;')
2. dest_table = job['configuration']['query']['destinationTable']
3. fields, rows = client.ReadSchemaAndRows(dest_table)


What is the expected output? What do you see instead?

I would expect to get all the rows back.  I would expect the default parameter 
for max_rows to work.  Instead I get:

BigqueryServiceError: Invalid unsigned integer value: '9223372036854775807'.

max_rows=sys.maxint is not a good default on 64bit python.


What version of the product are you using? On what operating system?

bigquery 2.0.12 in a virtualenv installed with pip on Mac OSX 10.8.2 with 
python 2.7.3 from fink.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Feb 2013 at 8:31

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions