Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore: add a test for external table reading. #812

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 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
12 changes: 12 additions & 0 deletions 12 tests/system/small/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,18 @@ def test_read_gbq_with_custom_global_labels(
assert len(bigframes.options.compute.extra_query_labels) == 0


def test_read_gbq_external_table(session: bigframes.Session):
# Verify the table is external to ensure it hasn't been altered
external_table_id = "bigframes-dev.bigframes_tests_sys.parquet_external_table"
external_table = session.bqclient.get_table(external_table_id)
assert external_table.table_type == "EXTERNAL"

df = session.read_gbq(external_table_id)

assert list(df.columns) == ["idx", "s1", "s2", "s3", "s4", "i1", "f1", "i2", "f2"]
assert df["i1"].max() == 99


def test_read_gbq_model(session, penguins_linear_model_name):
model = session.read_gbq_model(penguins_linear_model_name)
assert isinstance(model, bigframes.ml.linear_model.LinearRegression)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.