Neer393 commented on code in PR #6379:
URL: https://github.com/apache/hive/pull/6379#discussion_r3004414990


##########
ql/src/java/org/apache/hadoop/hive/ql/plan/PartitionDesc.java:
##########
@@ -258,6 +259,20 @@ public String getTableName() {
     return tableName;
   }
 
+  /**
+   * Returns the catalog name for this partition's table.  The value is stored 
as a dedicated
+   * field on {@link TableDesc} (not in its {@code Properties}, to avoid 
polluting EXPLAIN output)
+   * by {@code Utilities.getTableDesc(Table)}.  Falls back to {@link 
Warehouse#DEFAULT_CATALOG_NAME}
+   * when the field is absent (e.g. for PartitionDesc instances constructed 
without a backing
+   * {@code Table}).
+   */
+  public String getCatalogName() {

Review Comment:
   I can make the changes and add @Explain as I know it is important but for 
that I would then need to make changes in lots of q.out files as explain would 
explicitly add a new line saying
   ```
   hive.catalog.name hive
   ```
   
   If you are okay with that, I can do it. Just let me know



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to