IMPALA-880: COMPUTE STATS should update partitions in batches

When updating partition metadata as part of COMPUTE STATS we would previously
attempt to update all partitions at once. This could lead to HMS socket timeouts
and also could run into issues if there were > 32K partitions.

In this change we now update the partitions in batches, with a max size of 500
partitions per batch. We also compare whether the row count has changed and only
update partitions that have been modified.

Change-Id: If7bfcc30f86fc2fdd79855b981067ac29a47b5e1
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1913
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: jenkins
IMPALA-742: Fix unhandled metadata reading code path in parquet scanner.

Change-Id: I1dd6364d148fed881020c045ece635b1601f86bb
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1296
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
IMPALA-767: Log errors from BaseSequenceScanner::ReadFileHeader()

This patch fixes our handling of Avro tables containing unsupported
types (i.e. complex types). In debug builds we would hit a DCHECK in
codegen, and in release builds we would silently fail in
ResolveSchemas. This patch fixes the DCHECK and propagates the error
properly, as well as removes some redundant logging from other
scanners.

Change-Id: I7f5dcd81404cd85ac1cbb950a2b6abd2d7f6161f
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1902
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
IMPALA-752: Improve INSERT error message for unsupported file formats

Change-Id: Ib16817d6e49d3df30643563eb9ec5573a920bba7
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1911
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
IMPALA-867: Fail COMPUTE STATS in analysis for Avro tables affected by HIVE-6308.

Avro tables that were not created with a column-definition list do not have
their columns properly populated in the Metastore backend DB (HIVE-6308).
For such tables COMPUTE STATS and Hive's ANALYZE TABLE cannot succeed.
This patch fails COMPUTE STATS in analysis for such broken Avro tables
and adds tests for Avro tables with mismatched a column-definition list
and Avro schema.

Change-Id: I561ecea944ae2f83d69950b7a1ab9edaa89bdcea
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1892
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins