We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff6ce99 commit b771d21Copy full SHA for b771d21
tests/unit/core/compile/sqlglot/test_compile_window.py
@@ -13,14 +13,23 @@
13
# limitations under the License.
14
15
import numpy as np
16
+from packaging import version
17
import pandas as pd
18
import pytest
19
+import sqlglot
20
21
import bigframes.pandas as bpd
22
23
pytest.importorskip("pytest_snapshot")
24
25
26
+if version.Version(sqlglot.__version__) < version.Version("25.0.0"):
27
+ pytest.skip(
28
+ "Skip tests for sqlglot < 25.0.0 due to SQL formatting issues",
29
+ allow_module_level=True,
30
+ )
31
+
32
33
def test_compile_window_w_rolling(scalar_types_df: bpd.DataFrame, snapshot):
34
bf_df = scalar_types_df[["int64_col"]].sort_index()
35
result = bf_df.rolling(window=3).sum()
0 commit comments