diff --git a/ibis/backends/exasol/compiler.py b/ibis/backends/exasol/compiler.py index 6e7c4e07e22b..b7f88e984e1d 100644 --- a/ibis/backends/exasol/compiler.py +++ b/ibis/backends/exasol/compiler.py @@ -58,7 +58,6 @@ class ExasolCompiler(SQLGlotCompiler): ops.DayOfWeekIndex, ops.DayOfWeekName, ops.ElementWiseVectorizedUDF, - ops.ExtractDayOfYear, ops.ExtractEpochSeconds, ops.ExtractQuarter, ops.ExtractWeekOfYear, @@ -178,3 +177,6 @@ def visit_DateDelta(self, op, *, part, left, right): # * part = hour -> hours_between # * ... return self.f.days_between(left, right) + + def visit_ExtractDayOfYear(self, op, *, arg): + return self.cast(self.f.to_char(arg, "DDD"), op.dtype) diff --git a/ibis/backends/tests/test_temporal.py b/ibis/backends/tests/test_temporal.py index ab235e6b66a4..f90534c376c3 100644 --- a/ibis/backends/tests/test_temporal.py +++ b/ibis/backends/tests/test_temporal.py @@ -69,9 +69,7 @@ def test_date_extract(backend, alltypes, df, attr, expr_fn): param( "day_of_year", marks=[ - pytest.mark.notimpl( - ["exasol", "impala"], raises=com.OperationNotDefinedError - ), + pytest.mark.notimpl(["impala"], raises=com.OperationNotDefinedError), pytest.mark.notyet(["oracle"], raises=com.OperationNotDefinedError), ], ),