Nandor Kollar has posted comments on this change. ( http://gerrit.cloudera.org:8080/25116 )
Change subject: IMPALA-15281: Support DESCRIBE on partition ...................................................................... Patch Set 3: (3 comments) http://gerrit.cloudera.org:8080/#/c/25116/3/fe/src/main/java/org/apache/impala/service/DescribeResultFactory.java File fe/src/main/java/org/apache/impala/service/DescribeResultFactory.java: http://gerrit.cloudera.org:8080/#/c/25116/3/fe/src/main/java/org/apache/impala/service/DescribeResultFactory.java@224 PS3, Line 224: return buildDescribeFormattedResult(table, filteredColumns, null); The only place where this method was called is now calling the overloaded version, which now accepts a partition parameter. Does it make sense to keep this unused method? Actually it might make sense, if the caller side makes the decision to call this when there's no partition spec, something like this in the frontend: ` TDescribeResult result; if (partitionSpec != null) { FeFsPartition partition = catalog.getHdfsPartition(tableName.db_name, tableName.table_name, partitionSpec); result = DescribeResultFactory.buildDescribeFormattedResult(table, filteredColumns, partition); } else { result = DescribeResultFactory.buildDescribeFormattedResult(table, filteredColumns); } ` WDYT? http://gerrit.cloudera.org:8080/#/c/25116/3/fe/src/main/java/org/apache/impala/service/DescribeResultFactory.java@278 PS3, Line 278: // Add partition-specific metadata here. nit: I think we should delete the empty else branch, if it isn't used at all. http://gerrit.cloudera.org:8080/#/c/25116/3/fe/src/main/java/org/apache/impala/service/Frontend.java File fe/src/main/java/org/apache/impala/service/Frontend.java: http://gerrit.cloudera.org:8080/#/c/25116/3/fe/src/main/java/org/apache/impala/service/Frontend.java@1995 PS3, Line 1995: FeFsPartition partition = null; nit: it seems that partition is used only in the else, can we move it there? -- To view, visit http://gerrit.cloudera.org:8080/25116 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ie547bbee4c722118fada7e1bfdd6b32e5ac6c11b Gerrit-Change-Number: 25116 Gerrit-PatchSet: 3 Gerrit-Owner: Anshula Jain <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Nandor Kollar <[email protected]> Gerrit-Comment-Date: Tue, 20 Oct 2026 20:22:30 +0000 Gerrit-HasComments: Yes
