You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Riza Suminto (Code Review)" <ge...@cloudera.org> on 2025/04/13 05:32:30 UTC

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Riza Suminto has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22774


Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................

IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type

TestHmsIntegration.test_change_parquet_column_type fail in exhaustive
mode due to a missing int parsing introduced by IMPALA-13920.

This patch add the missing int parsing. It also fix flake8 issues
in test_hms_integration.py, including unused vector fixture.

Testing:
Run and pass test_hms_integration.py in exhaustive mode.

Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
---
M tests/metadata/test_hms_integration.py
1 file changed, 39 insertions(+), 41 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/74/22774/1
-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 1:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/11727/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Mon, 14 Apr 2025 06:28:25 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Fang-Yu Rao (Code Review)" <ge...@cloudera.org>.
Fang-Yu Rao has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22774/2/tests/metadata/test_hms_integration.py
File tests/metadata/test_hms_integration.py:

http://gerrit.cloudera.org:8080/#/c/22774/2/tests/metadata/test_hms_integration.py@a300
PS2, Line 300: 
> If no test require vector fixture, then no need to override add_test_dimens
Thanks Riza! It's clearer for me now.



-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Fang-Yu Rao <fa...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Thu, 17 Apr 2025 01:29:02 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Fang-Yu Rao (Code Review)" <ge...@cloudera.org>.
Fang-Yu Rao has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 2:

(1 comment)

I left a question which is only for my own understanding.

http://gerrit.cloudera.org:8080/#/c/22774/2/tests/metadata/test_hms_integration.py
File tests/metadata/test_hms_integration.py:

http://gerrit.cloudera.org:8080/#/c/22774/2/tests/metadata/test_hms_integration.py@a300
PS2, Line 300: 
This is only for my understanding.

Is my understanding correct that after 'vector' was removed, the class method add_test_dimensions() will never be called, because of the following in https://github.com/apache/impala/blob/master/tests/conftest.py? It looks like we call cls.add_test_dimensions() only if we provide 'vector' when running a test. If this is the case, then do we still need to keep add_test_dimensions()?

def pytest_generate_tests(metafunc):
  """
  This is a hook to parameterize the tests based on the input vector.

  If a test has the 'vector' fixture specified, this code is invoked and it will build
  a set of test vectors to parameterize the test with.
  """
  # All Impala tests classes must inherit BaseTestSuite.
  assert issubclass(metafunc.cls, tests.common.base_test_suite.BaseTestSuite)
  assert metafunc.cls.default_test_protocol() in VALID_TEST_PROTOCOLS
  if 'vector' in metafunc.fixturenames:
    metafunc.cls.add_test_dimensions()
    vectors = metafunc.cls.ImpalaTestMatrix.generate_test_vectors(
        metafunc.config.option.exploration_strategy)

    if len(vectors) == 0:
      LOG.warning("No test vectors generated for test '%s'. Check constraints and "
          "input vectors" % metafunc.function.__name__)

    vector_names = list(map(str, vectors))
    # In the case this is a test result update or sanity run, select a single test vector
    # to run. This is okay for update_results because results are expected to be the same
    # for all test vectors.
    if metafunc.config.option.update_results or metafunc.config.option.sanity:
      vectors = vectors[0:1]
      vector_names = vector_names[0:1]
    metafunc.parametrize('vector', vectors, ids=vector_names)



-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Fang-Yu Rao <fa...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Thu, 17 Apr 2025 01:20:06 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/22774/2/tests/metadata/test_hms_integration.py
File tests/metadata/test_hms_integration.py:

http://gerrit.cloudera.org:8080/#/c/22774/2/tests/metadata/test_hms_integration.py@a300
PS2, Line 300: 
> This is only for my understanding.
If no test require vector fixture, then no need to override add_test_dimension().



-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Fang-Yu Rao <fa...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Thu, 17 Apr 2025 01:27:24 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/18899/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Sun, 13 Apr 2025 05:59:43 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 1: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Mon, 14 Apr 2025 06:27:56 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................

IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type

TestHmsIntegration.test_change_parquet_column_type fail in exhaustive
mode due to a missing int parsing introduced by IMPALA-13920.

This patch add the missing int parsing. It also fix flake8 issues
in test_hms_integration.py, including unused vector fixture.

Testing:
Run and pass test_hms_integration.py in exhaustive mode.

Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Reviewed-on: http://gerrit.cloudera.org:8080/22774
Reviewed-by: Csaba Ringhofer <cs...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M tests/metadata/test_hms_integration.py
1 file changed, 39 insertions(+), 41 deletions(-)

Approvals:
  Csaba Ringhofer: Looks good to me, approved
  Impala Public Jenkins: Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>

[Impala-ASF-CR] IMPALA-13959: Fix TestHmsIntegration.test change parquet column type

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/22774 )

Change subject: IMPALA-13959: Fix TestHmsIntegration.test_change_parquet_column_type
......................................................................


Patch Set 1: Verified+1


-- 
To view, visit http://gerrit.cloudera.org:8080/22774
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If5fb9f96b4087e86b0ebaac7135e14b7a14936ea
Gerrit-Change-Number: 22774
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Noemi Pap-Takacs <np...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Mon, 14 Apr 2025 12:04:47 +0000
Gerrit-HasComments: No