You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Yu-Wen Lai (Code Review)" <ge...@cloudera.org> on 2021/10/08 23:59:35 UTC

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

Yu-Wen Lai has uploaded this change for review. ( http://gerrit.cloudera.org:8080/17910


Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................

IMPALA-10958: Decouple getConstraintsInformation from
hive.ql.metadata.Table

After HIVE-22782, ql.metadata.Table object has no methods to set
PrimaryKeyInfo and ForeignKeyInfo alone. However, we call these two
functions In DescribeResultFactory to set constraints and pass the
table into HiveMetadataFormatUtils. Instead of calling the methods
from table, we can directly pass PrimaryKeyInfo and ForeignKeyInfo
to HiveMetadataFormatUtils so that Impala won't be influenced even
though the table class changes interface.

Additionally, we can get rid of ql.metadata.Table for
getTableInformation altogether since it just needs
metastore.api.Table internally.

Tests:
Ran core tests.

Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
---
M fe/src/compat-hive-3/java/org/apache/impala/compat/HiveMetadataFormatUtils.java
M fe/src/compat-hive-3/java/org/apache/impala/compat/MetastoreShim.java
M fe/src/main/java/org/apache/impala/service/DescribeResultFactory.java
3 files changed, 15 insertions(+), 22 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1:

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


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sat, 09 Oct 2021 00:00:44 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/9581/ : 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/17910
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sat, 09 Oct 2021 00:21:48 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

Posted by "Vihang Karajgaonkar (Code Review)" <ge...@cloudera.org>.
Vihang Karajgaonkar has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/17910 )

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................

IMPALA-10958: Decouple getConstraintsInformation from
hive.ql.metadata.Table

After HIVE-22782, ql.metadata.Table object has no methods to set
PrimaryKeyInfo and ForeignKeyInfo alone. However, we call these two
functions In DescribeResultFactory to set constraints and pass the
table into HiveMetadataFormatUtils. Instead of calling the methods
from table, we can directly pass PrimaryKeyInfo and ForeignKeyInfo
to HiveMetadataFormatUtils so that Impala won't be influenced even
though the table class changes interface.

Additionally, we can get rid of ql.metadata.Table for
getTableInformation altogether since it just needs
metastore.api.Table internally.

Tests:
Ran core tests.

Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Reviewed-on: http://gerrit.cloudera.org:8080/17910
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Vihang Karajgaonkar <vi...@cloudera.com>
---
M fe/src/compat-hive-3/java/org/apache/impala/compat/HiveMetadataFormatUtils.java
M fe/src/compat-hive-3/java/org/apache/impala/compat/MetastoreShim.java
M fe/src/main/java/org/apache/impala/service/DescribeResultFactory.java
3 files changed, 15 insertions(+), 22 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Vihang Karajgaonkar: Looks good to me, approved

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 3
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Vihang Karajgaonkar <vi...@cloudera.com>
Gerrit-Reviewer: Yu-Wen Lai <yu...@cloudera.com>

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1:

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/7533/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Oct 2021 04:19:30 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 2: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 2
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Oct 2021 13:21:31 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 2:

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


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 2
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Oct 2021 07:10:50 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1:

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/7531/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Oct 2021 21:30:54 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 2: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 2
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Vihang Karajgaonkar <vi...@cloudera.com>
Gerrit-Reviewer: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Comment-Date: Tue, 19 Oct 2021 00:41:34 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1:

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


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Oct 2021 22:04:00 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/7527/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sat, 09 Oct 2021 06:10:33 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table

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

Change subject: IMPALA-10958: Decouple getConstraintsInformation from hive.ql.metadata.Table
......................................................................


Patch Set 1:

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


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2dfc54ae2f995dc4ab735d17dbbad9a48f6633da
Gerrit-Change-Number: 17910
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Wen Lai <yu...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 12 Oct 2021 16:54:25 +0000
Gerrit-HasComments: No