[
https://issues.apache.org/jira/browse/DRILL-7622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17050410#comment-17050410
]
ASF GitHub Bot commented on DRILL-7622:
---------------------------------------
vvysotskyi commented on pull request #2009: DRILL-7622: Compilation error when
using HLL / TDigest with group by
URL: https://github.com/apache/drill/pull/2009#discussion_r387160301
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/DrillAggFuncHolder.java
##########
@@ -159,7 +160,11 @@ public HoldingContainer renderEnd(ClassGenerator<?>
classGenerator, HoldingConta
for (int i = 0; i < getWorkspaceVars().length; i++) {
if (getWorkspaceVars()[i].isInject()) {
workspaceJVars[i] = g.declareClassField("work",
g.getModel()._ref(getWorkspaceVars()[i].getType()));
- g.getBlock(BlockType.SETUP).assign(workspaceJVars[i],
g.getMappingSet().getIncoming().invoke("getContext").invoke("getManagedBuffer"));
+ g.getBlock(BlockType.SETUP).assign(
Review comment:
Could you please add checks similar to
[`DrillFuncHolder`](https://github.com/apache/drill/blob/755529f3ac7ca77797f68b60e1d0713ad126e227/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/DrillFuncHolder.java#L186)
to ensure that the required variable should be injected, or even better -
refactor code to use common code for these two classes to inject variables in
the same way.
----------------------------------------------------------------
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]
> Compilation error when using HLL / TDigest with `group by` clause
> -----------------------------------------------------------------
>
> Key: DRILL-7622
> URL: https://issues.apache.org/jira/browse/DRILL-7622
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.17.0
> Reporter: Oleg Zinoviev
> Assignee: Oleg Zinoviev
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)