This is an automated email from the ASF dual-hosted git repository.
stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push:
new 14b959d7b IMPALA-13635: Fix wrong expect in
test_event_processor_error_global_invalidate
14b959d7b is described below
commit 14b959d7bf7104d0172ce41df909fc0835067644
Author: stiga-huang <[email protected]>
AuthorDate: Wed Jan 1 15:10:25 2025 +0800
IMPALA-13635: Fix wrong expect in
test_event_processor_error_global_invalidate
TestEventProcessingError.test_event_processor_error_global_invalidate
creates a partitioned table with partition year=2024. The test expects
the output of DESCRIBE FORMATTED contains string "2024". It happens to
work in year 2024 since there is a field of "CreateTime" in the output
that has "2024" in the timestamp. Now as we are in year 2025, the test
fails forever.
This fixes the test to check the output of SHOW PARTITIONS.
Tests
- Verified the test locally.
Change-Id: I0b17fd1f90a9bc00d027527661ff675e61ba0b1a
Reviewed-on: http://gerrit.cloudera.org:8080/22287
Reviewed-by: Yida Wu <[email protected]>
Reviewed-by: Andrew Sherman <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
tests/custom_cluster/test_event_processing_error.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/custom_cluster/test_event_processing_error.py
b/tests/custom_cluster/test_event_processing_error.py
index c4bf4a242..afe954311 100644
--- a/tests/custom_cluster/test_event_processing_error.py
+++ b/tests/custom_cluster/test_event_processing_error.py
@@ -339,6 +339,8 @@ class TestEventProcessingError(CustomClusterTestSuite):
result = self.client.execute("describe formatted {}.{}"
.format(unique_database, tbl_name))
self.verify_owner_property(result, 'test-user')
+ result = self.client.execute("show partitions {}.{}"
+ .format(unique_database, tbl_name))
assert "2024" in result.get_data()
@SkipIfFS.hive