This commit is contained in:
Zoltan Haindrich 2023-08-25 10:01:21 +00:00
parent bd7a49bd49
commit 44992cb393
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

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