You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by fj...@apache.org on 2019/05/23 23:37:04 UTC
[incubator-druid] branch 0.15.0-incubating updated: [Backport]
OrcStructConvert fix (#7742)
This is an automated email from the ASF dual-hosted git repository.
fjy pushed a commit to branch 0.15.0-incubating
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git
The following commit(s) were added to refs/heads/0.15.0-incubating by this push:
new 2441394 [Backport] OrcStructConvert fix (#7742)
2441394 is described below
commit 2441394fce2d430eda16cccdc4d9f653475c2d54
Author: Clint Wylie <cw...@apache.org>
AuthorDate: Thu May 23 16:36:53 2019 -0700
[Backport] OrcStructConvert fix (#7742)
from #7738, this is a performance issue
---
.../main/java/org/apache/druid/data/input/orc/OrcStructConverter.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcStructConverter.java b/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcStructConverter.java
index 20fbf06..69d113d 100644
--- a/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcStructConverter.java
+++ b/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcStructConverter.java
@@ -166,8 +166,6 @@ public class OrcStructConverter
fieldIndexCache.put(fields.get(i), i);
}
}
- WritableComparable wc = struct.getFieldValue(fieldName);
-
int fieldIndex = fieldIndexCache.getOrDefault(fieldName, -1);
return convertField(struct, fieldIndex);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org