Skip to content

Instantly share code, notes, and snippets.

@shrijeet
Created January 11, 2012 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrijeet/1597560 to your computer and use it in GitHub Desktop.
Save shrijeet/1597560 to your computer and use it in GitHub Desktop.
org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc.newInstance NPE
select pid as pid,
sum(if(bid is not null and bid <> '', 1, 0)) as bids,
sum(1) as requests
from table
where data_date = 20120110
and (pid = 15368 or pid = 15369 or pid = 15370)
group by pid,
sum(if(bid is not null and bid <> '', 1, 0)),
sum(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment