[
https://issues.apache.org/jira/browse/IMPALA-13635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909181#comment-17909181
]
ASF subversion and git services commented on IMPALA-13635:
----------------------------------------------------------
Commit 14b959d7bf7104d0172ce41df909fc0835067644 in impala's branch
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=14b959d7b ]
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]>
> TestEventProcessingError.test_event_processor_error_global_invalidate fails
> in year 2025
> ----------------------------------------------------------------------------------------
>
> Key: IMPALA-13635
> URL: https://issues.apache.org/jira/browse/IMPALA-13635
> Project: IMPALA
> Issue Type: Bug
> Components: Test
> Reporter: Quanlong Huang
> Assignee: Quanlong Huang
> Priority: Blocker
>
> The test adds a partition year=2024 but expects DESCRIBE FORMATTED to have
> 2024 in the output:
> {code:python}
> def test_event_processor_error_global_invalidate(self, unique_database):
> """Test to verify that auto global invalidate put back EP to active
> when it goes into error state"""
> tbl_name = "hive_table_global_invalidate"
> self.__create_table_and_load__(unique_database, tbl_name, True, True)
> self.run_stmt_in_hive(
> "alter table {}.{} set owner user `test-user`"
> .format(unique_database, tbl_name))
> self.run_stmt_in_hive(
> "alter table {}.{} add partition(year=2024)"
> .format(unique_database, tbl_name))
> EventProcessorUtils.wait_for_event_processing(self,
> error_status_possible=True)
> assert EventProcessorUtils.get_event_processor_status() == "ACTIVE"
> result = self.client.execute("describe formatted {}.{}"
> .format(unique_database, tbl_name))
> self.verify_owner_property(result, 'test-user')
> assert "2024" in result.get_data(){code}
> This works in year 2024 since in the output of DESCRIBE FORMATTED, there is a
> field of "CreateTime" which has "2024" in the timestamp. Now as we go into
> year 2025, the test fails forever. CC [~VenuReddy], [~hemanth619]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]