You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by st...@apache.org on 2021/03/30 01:30:47 UTC

[impala] 03/04: IMPALA-10605: Deflake test_refresh_native

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

commit 7198f07c9237e9b46b0442a256a704c216f22235
Author: Vihang Karajgaonkar <vi...@apache.org>
AuthorDate: Wed Mar 24 09:33:50 2021 -0700

    IMPALA-10605: Deflake test_refresh_native
    
    This test uses a regex to parse the output of
    describe database and extract the db properties. The regex assumes that there
    will only be 1 key value pair which is broken when events processor is
    running. The fix is to modify the regex so that it only extracts the
    relevant function name prefix and its value.
    
    Testing:
    1. The test fails when events processor is enabled. After the patch
    the test works as expected.
    
    Change-Id: I1df35b9c5f2b21cc7172f03ff8611d46070d64c2
    Reviewed-on: http://gerrit.cloudera.org:8080/17227
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 tests/custom_cluster/test_permanent_udfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/custom_cluster/test_permanent_udfs.py b/tests/custom_cluster/test_permanent_udfs.py
index 104252e..f75e86e 100644
--- a/tests/custom_cluster/test_permanent_udfs.py
+++ b/tests/custom_cluster/test_permanent_udfs.py
@@ -275,7 +275,7 @@ class TestUdfPersistence(CustomClusterTestSuite):
     describe_db_hive = "DESCRIBE DATABASE EXTENDED {database}".format(
         database=self.HIVE_IMPALA_INTEGRATION_DB)
     result = self.run_stmt_in_hive(describe_db_hive)
-    regex = r"{(.*?)=(.*?)}"
+    regex = r"{.*(impala_registered_function.*?)=(.*?)[,}]"
     match = re.search(regex, result)
     func_name = match.group(1)
     func_contents = match.group(2)