Skip to content

Commit

Permalink
fixed impala & exasol
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijennissen authored and cpcloud committed Jul 15, 2024
1 parent c91fa6a commit 2e95aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/sql/compilers/impala.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def visit_DayOfWeekIndex(self, op, *, arg):
return self.f.pmod(self.f.dayofweek(arg) - 2, 7)

def visit_IsoDayOfWeekIndex(self, op, *, arg):
return self.f.pmod(self.f.dayofweek(arg) - 1, 7)
return self.f.pmod(self.f.dayofweek(arg) - 2, 7) + 1

def visit_ExtractMillisecond(self, op, *, arg):
return self.f.extract(self.v.millisecond, arg) % 1_000
Expand Down

0 comments on commit 2e95aca

Please sign in to comment.