IMPALA-3754: fix TestParquet.test_corrupt_rle_counts flakiness

The test could hit one of two similar errors, depending on which order
it read the files. This patch fixes the ERROR/CATCH blocks to be more
permissive, so that either error is accepted.

Change-Id: I785048eda36552981b6ba9c739517f83ac8715f4
Reviewed-on: http://gerrit.cloudera.org:8080/3402
Reviewed-by: Tim Armstrong <[email protected]>
Tested-by: Internal Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/8a04b170
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/8a04b170
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/8a04b170

Branch: refs/heads/master
Commit: 8a04b170d25599fa23c655b1148defb217b730f2
Parents: 7f95fe2
Author: Tim Armstrong <[email protected]>
Authored: Thu Jun 16 21:41:02 2016 -0700
Committer: Tim Armstrong <[email protected]>
Committed: Mon Jun 20 15:37:18 2016 -0700

----------------------------------------------------------------------
 .../queries/QueryTest/parquet-corrupt-rle-counts-abort.test        | 2 +-
 .../queries/QueryTest/parquet-corrupt-rle-counts.test              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/8a04b170/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts-abort.test
----------------------------------------------------------------------
diff --git 
a/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts-abort.test
 
b/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts-abort.test
index c59ff94..a80d9f2 100644
--- 
a/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts-abort.test
+++ 
b/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts-abort.test
@@ -4,5 +4,5 @@ select * from bad_rle_counts
 ---- TYPES
 bigint
 ---- CATCH
-bad_rle_repeat_count.parquet' is corrupt: error decoding dictionary-encoded 
value of type BIGINT at offset 55
+is corrupt: error decoding dictionary-encoded value of type BIGINT at offset
 ====

http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/8a04b170/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts.test
----------------------------------------------------------------------
diff --git 
a/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts.test
 
b/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts.test
index d58ab85..a24441b 100644
--- 
a/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts.test
+++ 
b/testdata/workloads/functional-query/queries/QueryTest/parquet-corrupt-rle-counts.test
@@ -5,5 +5,5 @@ select * from bad_rle_counts
 bigint
 ---- RESULTS
 ---- ERRORS
-row_regex: .*File '.*/bad_rle_repeat_count.parquet' is corrupt: error decoding 
dictionary-encoded value of type BIGINT at offset 55.*
+row_regex: .*File '.*' is corrupt: error decoding dictionary-encoded value of 
type BIGINT at offset (55|69) \(1 of 2 similar\).*
 ====

Reply via email to