Fix appx_median to return correct result type

Change-Id: Ifc54e1069e2f7a46242229d710943e921633a920
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4625
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Tested-by: jenkins
Silence most of data loading spew by redirecting it to log files

Change-Id: I256a3970ce52bbcac816178029f703095fec388f
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4610
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
IMPALA-1303: Fix setting of intermediate agg tuples for num_nodes=1.

Change-Id: Ic6270443287be330f2a70d3037a96d7c98a380ec
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4601
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Nong Li <nong@cloudera.com>
length(CHAR(*)) function ignores spaces

Fixed length to behave like postgres for CHAR(*).

Change-Id: I817c74a4af73a3c0a9f5ea1d8ee36b520936395f
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4572
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: Victor Bittorf <victor.bittorf@cloudera.com>
Proper handling of NULL tuples by buffered-tuple-stream.

Adding a bitstring at the head of each block in the TupleStream that indicates which
tuples of the appended rows in the block are NULLs. When reading the stream, through
GetNext() or GetTupleRow() calls, the NULL tuples are stitched back to their correct
position.

This fixes crashes in PHJ of bushy plans with NULLs on the build side(s) as well as
similar crashes in PAGG and the analytic node.
For example, it fixes IMPALA-1204, IMPALA-1223, and IMPALA-1249.
Also, adds regression tests for IMPALA-1175, IMPALA-1204, IMPALA-1223, IMPALA-1249
and IMPALA-1306.

Change-Id: I30ad0dbd4dfeabcda8fae444d1c6ec9291f38398
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4596
Reviewed-by: Ippokratis Pandis <ipandis@cloudera.com>
Tested-by: jenkins
Add remote fragment start latency counter to profile

Change-Id: I4deb1bf489223d4128357cfde0269e3519e56c8f
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4613
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: jenkins
IMPALA-1316: crash on VARCHAR join

Fixed codegen issue casing some VARCHAR joins to crash.

Change-Id: Ib2674199a3b2c3c5a5fd63cfae0b64e3b1ca158b
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4616
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: jenkins
IMPALA-1278: Basic cardinality estimation for semi joins.

Change-Id: I353c9c581f7a54e0b42bdd1e89cf99b93d6e18de
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4634
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
Limit the size of a single hash table.

Limit the size of the hash table to the number of bits we are using in the
hash. We use 32-bit hashes with some of the bits used for partitioning. We
can't reuse the bits we picked for partitioning to index into the hash table.

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