Skip to content

Commit 969658c

Browse files
committed
skip tests for sqlglot sql formatting issues
1 parent fefc5b2 commit 969658c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/core/compile/sqlglot/test_compile_window.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@
1515
import numpy as np
1616
import pandas as pd
1717
import pytest
18+
from packaging import version
1819

1920
import bigframes.pandas as bpd
21+
import sqlglot
2022

2123
pytest.importorskip("pytest_snapshot")
2224

2325

26+
if version.Version(sqlglot.__version__) < version.Version("25.0.0"):
27+
pytest.skip("Skip tests for sqlglot < 25.0.0 due to SQL formatting issues")
28+
29+
2430
def test_compile_window_w_rolling(scalar_types_df: bpd.DataFrame, snapshot):
2531
bf_df = scalar_types_df[["int64_col"]].sort_index()
2632
result = bf_df.rolling(window=3).sum()

0 commit comments

Comments
 (0)