IMPALA-1243: Incorrect plan in analytic using inline view

This fixes the incorrect pushing of predicates into Unions for which at least one operand contains
an analytic expr.

It also adds a TupleDescriptor.debugName_ member variable that makes it easier to read the output
of DescriptorTable.debugString().

Change-Id: Icd50220e711851b8174fdfb53c6b2cd03ca3dcde
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4586
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Tested-by: jenkins
Standardize EXTRACT and add DATE_PART

The standard EXTRACT syntax is EXTRACT(<TIME UNIT> FROM <TIMESTAMP>) but
it was implemented as a regular function EXTRACT(<STRING>, <TIMESTAMP>).
The existing function will continue to be supported. We could deprecate
it but it doesn't seem like much of a burden to keep.

Adding DATE_PART is easy since it is functionally the same as the EXTRACT
function. The only difference is in the call signature. Besides the
difference in name, the arguments are reversed. Otherwise the two
functions are equivalent.

Change-Id: Ia6f9156624ed901723672469f94205c704839248
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4579
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
[CDH5]: Catch exception thrown if ACLs are disabled.

Change-Id: Iee0e03ab420578b0a4d47fa3f7ffb11e3f37b9ea
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4603
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: jenkins
[CDH5] Now using new authentication flags

A recent submittal added support for --krb5_conf and
--krb5_debug_file.  This checkin adds support for these flags to the
daemon start/stop scripts.

Change-Id: I10eb5a30af4f7c7cda136491d28f35a1a9700204
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4585
Reviewed-by: Michael Yoder <myoder@cloudera.com>
Tested-by: jenkins
IMPALA-1102: Clean up and fix removal of redundant join predicates.

Correct elimination of redundant join predicates relies on slot
equivalences being enforced at the lowest possible plan node
possibly by generating new predicates. Previously, we only
enforced such equivalences at scan and aggregation nodes which
is insufficient because join materialize a new tuple combination
which may also require construction of new predicates to establish
known slot equivalences.

This patch generalies the existing helper function for constructing
the minimum spanning tree to cover known slot equivalences for each
equivalence class. The function is intended to be called during
bottom-up plan generation at nodes that change the tuple composition
(scans, joins, aggs, etc.)

Change-Id: I73880310553c63296486b2f77a51618738005167
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4781
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4794
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Alex Behm <alex.behm@cloudera.com>
IMPALA-1358: fix free buffers check in IO mgr

Change-Id: Iedd61bfc81018e36bfbe47f14c576dde1c1d4c11
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4783
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
(cherry picked from commit 89c914f9a45af5ad52406b5d1ccf68053413591b)
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4789
Change the result verification for tpcds-q6 to account for the order by.

Change-Id: I304788ed5d5b54dc81e23ba192e322967c028c6b
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4711
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: jenkins
Fix bug that FsPermissionChecker doesn't apply Acl mask properly.

Change-Id: Ia609002e7f63260c9eb5d2080d64017e1d1cc1c9
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4682
Reviewed-by: Juan Yu <jyu@cloudera.com>
Tested-by: Juan Yu <jyu@cloudera.com>
[CDH5] CDH-22024: Impala uses an older version of httpcore which breaks KMS integration

libthrift depends httpcore 4.1.3 which does not work with KMS. To workaround
this problem the transitive dependency is excluded and we explicitly add a newer
httpcore dependency version.

Change-Id: I4685e32d5a5dc400a4f2d864efacabae9ca29f5e
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4725
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
IMPALA-1338: HDFS does not return all ACLs in getAclStatus()

Impala needs to combine file permission and getAclStatus output to get full
Acl list and use that to check permissions.

Change-Id: I6d5884932423573e545680a2747d85bdf5793909
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4683
Reviewed-by: Juan Yu <jyu@cloudera.com>
Tested-by: Juan Yu <jyu@cloudera.com>
Add partition filters to tpcds-q89 and re-enable tpcds-q47

This patch adds partitions filters to tpcds-q89 to account for the lack of dynamic
partition pruning. Additionally, it also re-enables running tpcds-q47, which was blocked
by IMPALA-1238

Change-Id: Ied05d80565ebb29cd06b3c38d76bd31f0285028e
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4453
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: jenkins
[CDH5] Fix bad merge in in spilling.test

Change-Id: Ia6e30cf5916c737088d8cb969e0167b9d69a599e