FE Cleanup: Use analyzeNoThrow() and investigate Expr.substitute() TODO.

I looked at those places that call Expr.substitute/List() and I think
that for all of them we do not want preserveRootType, so I simply
removed the TODO.

Change-Id: I7c98e2aee8f11b14781ec49840e82e69adc6b751
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4841
Tested-by: jenkins
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Alex Behm <alex.behm@cloudera.com>
Fix exhaustive test run: Modify test to produce identical results on HBase.

Change-Id: I7187f9aca63f61ea1686820b3cbec277240da191
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4866
Reviewed-by: Dimitris Tsirogiannis <dtsirogiannis@cloudera.com>
Tested-by: jenkins
CDH-22526: Upgrade Squeasel to bring in 'POODLE' fix

See CVE-2014-3566 for details. This patch upgrades Squeasel to disable
SSL2/SSL3 connections.

Change-Id: Id343879a7c1add11eaebd441386ec3368d00293c
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4870
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
IMPALA-181: ORDER BY with Ordinals

In case of certain queries order by with ordinals would not work
properly. This is the case for all "select * " type of queries. Until
now, the ordinal substitution was based on the values from the select
list. However, these expression are not expanded in case of "*",
rather the list of result expressions and column lables is filled.

This patch simply changes the lookup of the expression from the select
list to the result list because only ordinals from the result can be
used as a sorting field.

Change-Id: Ie32d30375163d8ebc0f6c06a6fdec0a7c38c6b56
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4808
Reviewed-by: Martin Grund <mgrund@cloudera.com>
Tested-by: jenkins
IMPALA-1300: Allow subqueries in UNION operands

This enables the existing subquery rewrite rules to rewrite UNION
statements. UNION rewriting is easily done by simply calling the
rewriter for each operand in the UNION. At least one TPC-DS query
requires this functionality (IMPALA-1365).

The more difficult case of a UNION within a subquery is still not
supported.

Change-Id: I7f83eed0eb8ae81565e629f09f6918a4ba86ee13
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4859
Reviewed-by: Casey Ching <casey@cloudera.com>
Tested-by: jenkins
IMPALA-1287: explain_level=0 for merging exchange is too verbose

This patch reduces the verbosity of the of the explain string
for the merge exchange node by reducing the order information
for explain_level=0.

Change-Id: I13bd0889bbc18aa5b60ea0721e8d8b08cde57714
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4856
Reviewed-by: Martin Grund <mgrund@cloudera.com>
Tested-by: jenkins
Create view stmt throws an error when it contains a subquery

This commit fixes an issue where create view statements throw an error
if they contain subqueries. If the create view statement contains a
subquery it is not rewritten when the view is created but when its view
definition is used in a query statement.

Change-Id: I156b1a8de8fbf5acc58c2e06d2df317529abb75b
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4879
Reviewed-by: Dimitris Tsirogiannis <dtsirogiannis@cloudera.com>
Tested-by: jenkins
add blinkdb options to approx funciton
Merge branch 'master' of https://github.com/cloudera/Impala into blinkdb