Disable text writer test.

This fails for the same reason as the sequence writer. It passes locally but fails in
zlib on the jenkins boxes. I suspect something is wrong with our gzip codec or the
version of zlib installed on those machines (we've disabled this for parquet as well).

Change-Id: I706186fbb6207fa694b4e61c7114e17c1ffe3482
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4221
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Nong Li <nong@cloudera.com>
Add GetValue() fn for agg fns that can be run as analytic fns and alloc memory

The AnalyticEvalNode needs to re-use intermediate state tuples so it cannot
call Finalize() for agg fns that clean up intermediate state. Those fns
need to have a GetValue() method which just returns the result.

This adds a GetValue() method for avg() (all types) and min()/max() (only
needed for strings).

Change-Id: Iedd6b026a1a256d9577dbb4c37824ac9282319ca
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4199
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
[CDH4] Modified TPCH queries to match the specification

Change-Id: I4274927a4bd06a1e958dd0c937b31b669858c342
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3803
Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com>
Tested-by: jenkins
Move PHJ functions to IR file.

This patch only moves the ProcessBatch functions to the new file and
but doesn't make any changes to the functions. This will make rebasing
with my codegen patch much easier.

Change-Id: I0c45d64c743292e49714b7f86d4ab28c231c75ab
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4225
Reviewed-by: Nong Li <nong@cloudera.com>
Reviewed-by: Ippokratis Pandis <ipandis@cloudera.com>
Tested-by: Skye Wanderman-Milne <skye@cloudera.com>
IMPALA-1214: Fix missing lock in BufferdBlockMgr.

GetUnusedBlock is not thread-safe and needs to be called with a lock taken.

Change-Id: Idaa4e2f49e27e0d01653cc7e62f9ebc7317fe5ec
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4223
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: Nong Li <nong@cloudera.com>