[ 
https://issues.apache.org/jira/browse/HIVE-25102?focusedWorklogId=599826&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-599826
 ]

ASF GitHub Bot logged work on HIVE-25102:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/May/21 14:21
            Start Date: 20/May/21 14:21
    Worklog Time Spent: 10m 
      Work Description: marton-bod commented on a change in pull request #2261:
URL: https://github.com/apache/hive/pull/2261#discussion_r636151988



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/QueryState.java
##########
@@ -59,6 +60,11 @@
 
   static public final String USERID_TAG = "userid";
 
+  /**
+   * map of tables involved in the query.
+   */
+  private final Map<String, Object> tableMap = new HashMap<>();

Review comment:
       Can we make this a generic map so we can store things other than tables 
here? We will need this container also for other info that - in the absence of 
this new query state feature - we previously had to force into the conf, such 
as write commit info (jobID, vertexID, taskNum), CTAS info (is the query ctas? 
what's the ctas target table name), etc.




-- 
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.

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 599826)
    Time Spent: 4.5h  (was: 4h 20m)

> Cache Iceberg table objects within same query
> ---------------------------------------------
>
>                 Key: HIVE-25102
>                 URL: https://issues.apache.org/jira/browse/HIVE-25102
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Pintér
>            Assignee: László Pintér
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> We run Catalogs.loadTable(configuration, props) plenty of times which is 
> costly.
> We should:
>  - Cache it maybe even globally based on the queryId
>  - Make sure that the query uses one snapshot during the whole execution of a 
> single query



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to