Skip to content

Instantly share code, notes, and snippets.

@moaikids
Created February 13, 2013 02:10
Show Gist options
  • Save moaikids/4874769 to your computer and use it in GitHub Desktop.
Save moaikids/4874769 to your computer and use it in GitHub Desktop.

explain

explain select * from user limit 10;

explain select * from (select * from user) u sort by user_id limit 10 ;

local mode

select count(*) from user;

set mapred.job.tracker = local; set mapred.tmp.dir =/tmp/masashi/sada; select count(*) from user;

virtual columns

et hive.exec.rowoffset=true;
select INPUT__FILE__NAME , BLOCK__OFFSET__INSIDE__FILE, ROW__OFFSET__INSIDE__BLOCK from user limit 10;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment