Skip to content

Commit

Permalink
put back assert; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Oct 18, 2023
1 parent 0918a4f commit 462eec6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public static DruidQuery fromPartialQuery(

if (partialQuery.getWindow() != null) {
if (plannerContext.featureAvailable(EngineFeature.WINDOW_FUNCTIONS)) {
assert (virtualColumnRegistry.isEmpty());
windowing = Preconditions.checkNotNull(
Windowing.fromCalciteStuff(
partialQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ public static Windowing fromCalciteStuff(
}

for (int i = 0; i < window.groups.size(); ++i) {

// FIXME: I think this should be recreated after every group
VirtualColumnRegistry virtualColumnRegistry = VirtualColumnRegistry.create(
sourceRowSignature,
plannerContext.getExpressionParser(),
Expand Down

0 comments on commit 462eec6

Please sign in to comment.