This is an automated email from the ASF dual-hosted git repository.

jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 0b806ebdd0 [#7250] fix: remove unused collect operation (#7265)
0b806ebdd0 is described below

commit 0b806ebdd060c574b0f05563b01a4602d4c8c596
Author: Gagan B Mishra <[email protected]>
AuthorDate: Tue May 27 16:26:33 2025 -0700

    [#7250] fix: remove unused collect operation (#7265)
    
    ### What changes were proposed in this pull request?
    
    Remove unused stream operation on `tablePOs`
    
    ### Why are the changes needed?
    
    The stream operation collects the catalogIds to a list; which is not
    really used anywhere in the method.
    
    Fix: #7250
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    `./gradlew build`
---
 .../gravitino/storage/relational/service/MetadataObjectService.java      | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/gravitino/storage/relational/service/MetadataObjectService.java
 
b/core/src/main/java/org/apache/gravitino/storage/relational/service/MetadataObjectService.java
index 8ecc218626..834b04199b 100644
--- 
a/core/src/main/java/org/apache/gravitino/storage/relational/service/MetadataObjectService.java
+++ 
b/core/src/main/java/org/apache/gravitino/storage/relational/service/MetadataObjectService.java
@@ -249,7 +249,6 @@ public class MetadataObjectService {
       return new HashMap<>();
     }
 
-    tablePOs.stream().map(TablePO::getCatalogId).collect(Collectors.toList());
     List<Long> schemaIds = 
tablePOs.stream().map(TablePO::getSchemaId).collect(Collectors.toList());
 
     Map<Long, String> schemaIdAndNameMap = getSchemaObjectsFullName(schemaIds);

Reply via email to