Skip to content

test(bigquery): use fixed date instead of current date #846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ibis-server/tests/routers/v2/connector/test_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ def test_avg_interval(manifest_str):
json={
"connectionInfo": connection_info,
"manifestStr": manifest_str,
"sql": 'SELECT AVG(CURRENT_DATE - orderdate) AS col from "Orders"',
"sql": "SELECT AVG(DATE '2024-01-01' - orderdate) AS col from \"Orders\"",
},
)
assert response.status_code == 200
result = response.json()
assert result["data"][0] == ["10780 days 32054400000 microseconds"]
assert result["data"][0] == ["10484 days 32054400000 microseconds"]
assert result["dtypes"] == {"col": "object"}

def test_validate_with_unknown_rule(manifest_str):
Expand Down
Loading