Remove redundant test in test_avro_schema_resolution.py Change-Id: I7123cd5e19d79122af3b4fef2c092442b7a098f1 Reviewed-on: http://gerrit.cloudera.org:8080/3095 Reviewed-by: Alex Behm <[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/32c40f9c Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/32c40f9c Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/32c40f9c Branch: refs/heads/master Commit: 32c40f9c5daae8f130c928578636f6fa4204fd22 Parents: 8f79e9e Author: Alex Behm <[email protected]> Authored: Mon May 16 19:56:38 2016 -0700 Committer: Tim Armstrong <[email protected]> Committed: Tue May 31 23:32:11 2016 -0700 ---------------------------------------------------------------------- .../queries/QueryTest/avro-schema-resolution.test | 4 ++++ tests/query_test/test_avro_schema_resolution.py | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/32c40f9c/testdata/workloads/functional-query/queries/QueryTest/avro-schema-resolution.test ---------------------------------------------------------------------- diff --git a/testdata/workloads/functional-query/queries/QueryTest/avro-schema-resolution.test b/testdata/workloads/functional-query/queries/QueryTest/avro-schema-resolution.test index 7b5dd05..d5d8942 100644 --- a/testdata/workloads/functional-query/queries/QueryTest/avro-schema-resolution.test +++ b/testdata/workloads/functional-query/queries/QueryTest/avro-schema-resolution.test @@ -25,6 +25,7 @@ int, boolean, int, int, int, bigint, float, double, string, string, string, int, 6380,true,0,0,0,0,0,0,'10/01/10','0','2010-10-01 00:00:00',2010,10 ==== ---- QUERY +# IMPALA-2798: Test mismatched column definitions and Avro schema. select count(*) from functional_avro_snap.avro_coldef ---- TYPES bigint @@ -32,6 +33,7 @@ bigint 10 ==== ---- QUERY +# IMPALA-2798: Test mismatched column definitions and Avro schema. select count(*) from functional_avro_snap.avro_extra_coldef ---- TYPES bigint @@ -39,6 +41,7 @@ bigint 10 ==== ---- QUERY +# IMPALA-2798: Test mismatched column definitions and Avro schema. select tinyint_col, string_col from functional_avro_snap.avro_coldef order by int_col ---- TYPES int, string @@ -55,6 +58,7 @@ int, string 4,'4' ==== ---- QUERY +# IMPALA-2798: Test mismatched column definitions and Avro schema. select tinyint_col, string_col from functional_avro_snap.avro_extra_coldef order by int_col ---- TYPES int, string http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/32c40f9c/tests/query_test/test_avro_schema_resolution.py ---------------------------------------------------------------------- diff --git a/tests/query_test/test_avro_schema_resolution.py b/tests/query_test/test_avro_schema_resolution.py index ff955ce..5754c83 100644 --- a/tests/query_test/test_avro_schema_resolution.py +++ b/tests/query_test/test_avro_schema_resolution.py @@ -36,12 +36,6 @@ class TestAvroSchemaResolution(ImpalaTestSuite): for x in range(len(result.data)): assert comparison.data[x] == result.data[x] - def test_avro_codegen_decoder(self, vector): - """Test for IMPALA-2798, verify if Impala returns correct result if table schema - doesn't match file schema. - """ - self.run_test_case('QueryTest/avro-schema-resolution', vector) - def test_avro_schema_changes(self, vector, unique_database): """Test for IMPALA-3314 and IMPALA-3513: Impalad shouldn't crash with stale avro metadata. Instead, should provide a meaningful error message.
