Skip to content

Commit

Permalink
fixed impala & exasol
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijennissen committed Apr 20, 2024
1 parent c83113a commit c3ae9b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/exasol/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ExasolCompiler(SQLGlotCompiler):
ops.DateAdd,
ops.DateSub,
ops.DateFromYMD,
ops.DayOfWeekIndex,
# ops.DayOfWeekIndex,
ops.ElementWiseVectorizedUDF,
ops.First,
ops.IntervalFromInteger,
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/impala/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,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 c3ae9b7

Please sign in to comment.