You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2026/03/04 06:56:16 UTC
[PR] [core] Introduce Catalog.listPartitionsByNames [paimon]
JingsongLi opened a new pull request, #7340:
URL: https://github.com/apache/paimon/pull/7340
<!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
### Purpose
<!-- Linking this pull request to the issue -->
Get partitions by names. This can avoid obtaining all partitions.
<!-- What is the purpose of the change -->
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
### Generative AI tooling
<!--
If generative AI tooling has been used in the process of authoring this patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce Catalog.listPartitionsByNames [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #7340:
URL: https://github.com/apache/paimon/pull/7340
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce Catalog.listPartitionsByNames [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on code in PR #7340:
URL: https://github.com/apache/paimon/pull/7340#discussion_r2884004202
##########
paimon-core/src/main/java/org/apache/paimon/catalog/AbstractCatalog.java:
##########
@@ -193,6 +193,13 @@ public PagedList<Partition> listPartitionsPaged(
return new PagedList<>(listPartitions(identifier), null);
}
+ @Override
+ public List<Partition> listPartitionsByNames(
+ Identifier identifier, List<Map<String, String>> partitions)
+ throws TableNotExistException {
+ return CatalogUtils.listPartitionsFromFileSystem(getTable(identifier), partitions);
+ }
+
Review Comment:
The check is just for protect REST server. Lack check here is valid. Let it go.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce Catalog.listPartitionsByNames [paimon]
Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on PR #7340:
URL: https://github.com/apache/paimon/pull/7340#issuecomment-3997839745
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce Catalog.listPartitionsByNames [paimon]
Posted by "qingwei727 (via GitHub)" <gi...@apache.org>.
qingwei727 commented on code in PR #7340:
URL: https://github.com/apache/paimon/pull/7340#discussion_r2883950143
##########
paimon-core/src/main/java/org/apache/paimon/catalog/AbstractCatalog.java:
##########
@@ -193,6 +193,13 @@ public PagedList<Partition> listPartitionsPaged(
return new PagedList<>(listPartitions(identifier), null);
}
+ @Override
+ public List<Partition> listPartitionsByNames(
+ Identifier identifier, List<Map<String, String>> partitions)
+ throws TableNotExistException {
+ return CatalogUtils.listPartitionsFromFileSystem(getTable(identifier), partitions);
+ }
+
Review Comment:
Missing the 1000-limit validation that RESTApi.listPartitionsByNames checkde
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org