mirror of https://github.com/apache/druid.git
fix0
This commit is contained in:
parent
bd7a49bd49
commit
44992cb393
|
@ -64,9 +64,6 @@ public class StringLastBufferAggregator implements BufferAggregator
|
|||
@Override
|
||||
public void aggregate(ByteBuffer buf, int position)
|
||||
{
|
||||
if (timeSelector.isNull()) {
|
||||
return;
|
||||
}
|
||||
if (needsFoldCheck) {
|
||||
// Less efficient code path when folding is a possibility (we must read the value selector first just in case
|
||||
// it's a foldable object).
|
||||
|
@ -87,6 +84,9 @@ public class StringLastBufferAggregator implements BufferAggregator
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if (timeSelector.isNull()) {
|
||||
return;
|
||||
}
|
||||
final long time = timeSelector.getLong();
|
||||
final long lastTime = buf.getLong(position);
|
||||
|
||||
|
|
|
@ -260,7 +260,10 @@ public class CalciteRulesManager
|
|||
|
||||
boolean isDebug = plannerContext.queryContext().isDebug();
|
||||
return ImmutableList.of(
|
||||
Programs.sequence(preProgram, Programs.ofRules(druidConventionRuleSet(plannerContext))),
|
||||
Programs.sequence(preProgram,
|
||||
new LoggingProgram("Start", true),
|
||||
Programs.ofRules(druidConventionRuleSet(plannerContext)),
|
||||
new LoggingProgram("End", true)),
|
||||
Programs.sequence(preProgram, Programs.ofRules(bindableConventionRuleSet(plannerContext))),
|
||||
Programs.sequence(
|
||||
// currently, adding logging program after every stage for easier debugging
|
||||
|
|
Loading…
Reference in New Issue