Skip to content

Commit

Permalink
feat(exasol): add support for extract seconds (#8723)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti authored Mar 21, 2024
1 parent 1778de5 commit fb7e533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/exasol/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def visit_StringContains(self, op, *, haystack, needle):
return self.f.locate(needle, haystack) > 0

def visit_ExtractSecond(self, op, *, arg):
return self.f.floor(self.cast(self.f.extract(self.v.second, arg), op.dtype))
return self.cast(self.f.floor(self.f.extract(self.v.second, arg)), op.dtype)

def visit_ExtractMillisecond(self, op, *, arg):
return self.cast(
Expand Down
11 changes: 1 addition & 10 deletions ibis/backends/tests/test_temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,7 @@ def test_date_extract(backend, alltypes, df, attr, expr_fn):
),
"hour",
"minute",
param(
"second",
marks=[
pytest.mark.broken(
["exasol"],
raises=AssertionError,
reason="seems like exasol might be rounding",
)
],
),
"second",
],
)
@pytest.mark.notimpl(
Expand Down

0 comments on commit fb7e533

Please sign in to comment.