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

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

                Author: ASF GitHub Bot
            Created on: 25/Aug/20 08:56
            Start Date: 25/Aug/20 08:56
    Worklog Time Spent: 10m 
      Work Description: abstractdog commented on a change in pull request #1423:
URL: https://github.com/apache/hive/pull/1423#discussion_r476289475



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorInBloomFilterColDynamicValue.java
##########
@@ -100,26 +103,39 @@ public void init(Configuration conf) {
     default:
       throw new IllegalStateException("Unsupported type " + colVectorType);
     }
+
+    String queryId = HiveConf.getVar(conf, HiveConf.ConfVars.HIVEQUERYID);
+    runtimeCache = ObjectCacheFactory.getCache(conf, queryId, false, true);
   }
 
-  private void initValue()  {
-    InputStream in = null;
+  private void initValue() {
     try {
-      Object val = bloomFilterDynamicValue.getValue();
-      if (val != null) {
-        BinaryObjectInspector boi = (BinaryObjectInspector) 
bloomFilterDynamicValue.getObjectInspector();
-        byte[] bytes = boi.getPrimitiveJavaObject(val);
-        in = new NonSyncByteArrayInputStream(bytes);
-        bloomFilter = BloomKFilter.deserialize(in);
-      } else {
-        bloomFilter = null;
-      }
-      initialized = true;
-    } catch (Exception err) {
-      throw new RuntimeException(err);
-    } finally {
-      IOUtils.closeStream(in);

Review comment:
       added it back and force pushed
   
   




----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 474213)
    Time Spent: 1h  (was: 50m)

> Bloom filters can be cached after deserialization in 
> VectorInBloomFilterColDynamicValue
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-24065
>                 URL: https://issues.apache.org/jira/browse/HIVE-24065
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2020-08-05-10-05-25-080.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Same bloom filter is loaded multiple times across tasks. It would be good to 
> check if we can optimise this, to avoid deserializing.



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

Reply via email to