You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Leo Alekseyev <dn...@gmail.com> on 2010/11/29 01:09:22 UTC

tablesample with a nested query / table alias

The following query doesn't run with the error:
FAILED: Parse Error: line 3:0 mismatched input 'tablesample' expecting EOF

Am I doing something obviously wrong, or can you just not use
tablesample like this?

select * from (select user_agent, cookie, geoloc, flags from alogs_master
where ds='2010-11-26' and ch='595.00001' and flags[2]="H" and flags[1]="") t
tablesample(bucket 1 out of 100 on rand());


--Leo