2013-12-10 52 views
0

所以我有我的bigquery表白天分裂 - 每個表作爲當天的價值數據。Bigquery查詢返回「pagetoken missing」 - 查詢在其他表上工作

當運行它似乎對一些表(例如adroit.raw_data_2013_12_09),但不用於創建超過3天前表(例如adroit.raw_data_2013_12_05)

在這裏工作的select語句是錯誤的讀出:

bigquery service returned an invalid reply in query operation: pagetoken missing 
for table '123856490061:_2863529bd240bcbd666b3debc039d3c62827fd67.anon64863979ca 
e70f1bf67661ed0fafb2a8c5bb36e1'. 

please make sure you are using the latest version of the bq tool and try again. 
if this problem persists, you may have encountered a bug in the bigquery client. 
google engineers monitor and answer questions on stack overflow, with the tag 
google-bigquery: 
http://stackoverflow.com/questions/ask?tags=google-bigquery 
please include a brief description of the steps that led to this issue, as well 
as the following information: 

======================================== 
== platform == 
    cpython:2.7.5:linux-2.6.26-2-xen-amd64-x86_64-with-debian-5.0.8 
== bq version == 
    v2.0.12 
== command line == 
    ['/usr/local/bin/bq', 'query', '--max_rows=100000', '--format=csv', '-q', 'select count(*) as views, template_id, string_id, state_id, reel_1,reel_2,reel_3,reel_4,reel_5,reel_6,reel_7,reel_8,reel_9,reel_10 from adroit.raw_data_2013_12_03 where operation_type in (1,3) and template_id in (2659,2660,2661) group by template_id, string_id, state_id, reel_1,reel_2,reel_3,reel_4,reel_5,reel_6,reel_7,reel_8,reel_9,reel_10'] 
== utc timestamp == 
    2013-12-10 23:15:43 
== error trace == 
    file "build/bdist.linux-x86_64/egg/bq.py", line 652, in runsafely 
    return_value = self.runwithargs(*args, **kwds) 
    file "build/bdist.linux-x86_64/egg/bq.py", line 932, in runwithargs 
    max_rows=self.max_rows) 
    file "build/bdist.linux-x86_64/egg/bq.py", line 383, in _printtable 
    fields, rows = client.readschemaandrows(table_dict, **extra_args) 
    file "build/bdist.linux-x86_64/egg/bigquery_client.py", line 668, in readschemaandrows 
    self.readtablerows(table_dict, max_rows)) 
    file "build/bdist.linux-x86_64/egg/bigquery_client.py", line 649, in readtablerows 
    apiclienthelper.tablereference.create(**table_dict),)) 
======================================== 


unexpected exception in query operation: pagetoken missing for table '1238564900 
61:_2863529bd240bcbd666b3debc039d3c62827fd67.anon64863979cae70f1bf67661ed0fafb2a 
8c5bb36e1' 

所以,我想easy_install的更新和腳本說我的BQ客戶端是最新的。我不知道爲什麼我得到這個錯誤。謝謝。

回答

0

看起來你使用的是舊版本的bq。最新版本是2.0.17。

$ bq version 
This is BigQuery CLI v2.0.17 

當您運行easy_install時,您是否使用了--upgrade標誌?如果沒有,它實際上並沒有更新您使用的版本。

您可以在下載頁面上看到最新版本here

+0

完全是這樣做的。忘了 - 升級標誌。謝謝! – user1932483