Skip to content

Commit

Permalink
Fix frame check.
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Feb 16, 2019
1 parent 4a682bd commit 7b7d4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/data/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class WindowTransformNode extends DataFlowNode {
const frame = this.transform.frame;
const groupby = this.transform.groupby;

if (frame && frame[0] === null && frame[1] === 0 && ops.every(o => isAggregateOp(o))) {
if (frame && frame[0] === null && frame[1] === null && ops.every(o => isAggregateOp(o))) {
// when the window does not rely on any particular window ops or frame, switch to a simpler and more efficient joinaggregate
return {
type: 'joinaggregate',
Expand Down

0 comments on commit 7b7d4c6

Please sign in to comment.