hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Alekseyev <dnqu...@gmail.com>
Subject tablesample with a nested query / table alias
Date Mon, 29 Nov 2010 00:09:22 GMT
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

Mime
View raw message