Skip to content

Commit

Permalink
Fixed issue with rework
Browse files Browse the repository at this point in the history
  • Loading branch information
revans2 committed Jul 7, 2021
1 parent e7d26a2 commit 703593d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,13 @@ object GroupedAggregations extends Arm {
.minPeriods(1)
.orderByColumnIndex(orderByIndex)

if (preceding.isDefined) {
if (preceding.isEmpty) {
windowOptionBuilder.unboundedPreceding()
} else {
windowOptionBuilder.preceding(preceding.get)
}

if (following.isDefined) {
if (following.isEmpty) {
windowOptionBuilder.unboundedFollowing()
} else {
windowOptionBuilder.following(following.get)
Expand Down

0 comments on commit 703593d

Please sign in to comment.