Skip to content

Commit

Permalink
chore(duckdb): throw iso_year into simple_ops
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed May 8, 2024
1 parent d206c98 commit f60e27f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ibis/backends/duckdb/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class DuckDBCompiler(SQLGlotCompiler):
ops.BitOr: "bit_or",
ops.BitXor: "bit_xor",
ops.EndsWith: "suffix",
ops.ExtractIsoYear: "isoyear",
ops.Hash: "hash",
ops.IntegerRange: "range",
ops.TimestampRange: "range",
Expand Down Expand Up @@ -201,9 +202,6 @@ def visit_ArrayZip(self, op, *, arg):
any_arg_null = sg.or_(*(arr.is_(NULL) for arr in arg))
return self.if_(any_arg_null, NULL, zipped_arrays)

def visit_ExtractIsoYear(self, op, *, arg):
return self.f.isoyear(arg)

def visit_Map(self, op, *, keys, values):
# workaround for https://github.com/ibis-project/ibis/issues/8632
return self.if_(
Expand Down

0 comments on commit f60e27f

Please sign in to comment.