Fix CompoundPredicate::CodegenComputeFn

The codegen'd function was returning false instead of NULL

Change-Id: I481b5b82e3336a71c2a55a7be326af8d39a4d510
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4394
Tested-by: jenkins
Reviewed-by: Nong Li <nong@cloudera.com>
IMPALA-1243: Incorrect plan in analytic using inline view

Prevent predicate propagation into inline views containing analytic exprs by
a) not explicitly pushing predicates into such inline views
b) blocking the propagation path by not registering auxiliary eq predicates for the inline view

Change-Id: I4e94a7e559696e88e38cd62ed8ce30434810604e
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4387
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Tested-by: jenkins
Cost-based inversion of outer, semi and cross joins.

Change-Id: I7ce8847aadb5028ea5655ef2437ad31ab277e6de
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4323
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
IMPALA-1187: Add appx_count_distinct query option to rewrite COUNT(DISTINCT) to NDV().

This patch also fixes IMPALA-1164: NDV() now returns a BIGINT (and not STRING).

Change-Id: Ia2a3272204938579d61091ee4f7f2d1cbf38ed55
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4338
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
Use CRC hash for 0th partition level.

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