Skip to content

Commit

Permalink
feat(bigquery): add ops.ExtractDayOfYear
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-kwitt authored and cpcloud committed Dec 20, 2022
1 parent 893cd49 commit 30c547a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ibis/backends/bigquery/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ def _array_agg(t, op):
ops.ExtractQuarter: _extract_field("quarter"),
ops.ExtractMonth: _extract_field("month"),
ops.ExtractDay: _extract_field("day"),
ops.ExtractDayOfYear: _extract_field("dayofyear"),
ops.ExtractHour: _extract_field("hour"),
ops.ExtractMinute: _extract_field("minute"),
ops.ExtractSecond: _extract_field("second"),
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/tests/test_temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_date_extract(backend, alltypes, df, attr, expr_fn):
'day',
param(
'day_of_year',
marks=pytest.mark.notimpl(["bigquery", "impala", "mssql", "trino"]),
marks=pytest.mark.notimpl(["impala", "mssql", "trino"]),
),
'quarter',
'hour',
Expand Down

0 comments on commit 30c547a

Please sign in to comment.