diff --git a/ibis/backends/bigquery/registry.py b/ibis/backends/bigquery/registry.py index 2609eb47dcc4..a0038d51ff86 100644 --- a/ibis/backends/bigquery/registry.py +++ b/ibis/backends/bigquery/registry.py @@ -587,6 +587,7 @@ def _nth_value(t, op): ops.ExtractYear: _extract_field("year"), ops.ExtractQuarter: _extract_field("quarter"), ops.ExtractMonth: _extract_field("month"), + ops.ExtractWeekOfYear: _extract_field("isoweek"), ops.ExtractDay: _extract_field("day"), ops.ExtractDayOfYear: _extract_field("dayofyear"), ops.ExtractHour: _extract_field("hour"), diff --git a/ibis/backends/tests/test_temporal.py b/ibis/backends/tests/test_temporal.py index 649578642ada..a669082cd8a8 100644 --- a/ibis/backends/tests/test_temporal.py +++ b/ibis/backends/tests/test_temporal.py @@ -126,7 +126,7 @@ def test_timestamp_extract_epoch_seconds(backend, alltypes, df): backend.assert_series_equal(result, expected) -@pytest.mark.notimpl(["bigquery", "datafusion"]) +@pytest.mark.notimpl(["datafusion"]) def test_timestamp_extract_week_of_year(backend, alltypes, df): expr = alltypes.timestamp_col.week_of_year().name('tmp') result = expr.execute()