Skip to content

Commit 58640a1

Browse files
asthamohtaparthea
andauthored
fix: @421 (#769)
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent f2c273d commit 58640a1

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

samples/samples/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ def create_client_with_query_options(instance_id, database_id):
20352035
spanner_client = spanner.Client(
20362036
query_options={
20372037
"optimizer_version": "1",
2038-
"optimizer_statistics_package": "auto_20191128_14_47_22UTC",
2038+
"optimizer_statistics_package": "latest",
20392039
}
20402040
)
20412041
instance = spanner_client.instance(instance_id)

samples/samples/snippets_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,6 @@ def test_query_data_with_query_options(capsys, instance_id, sample_database):
627627
assert "VenueId: 42, VenueName: Venue 42, LastUpdateTime:" in out
628628

629629

630-
@pytest.mark.skip(
631-
"Failure is due to the package being missing on the backend."
632-
"See: https://github.com/googleapis/python-spanner/issues/421"
633-
)
634630
@pytest.mark.dependency(depends=["insert_datatypes_data"])
635631
def test_create_client_with_query_options(capsys, instance_id, sample_database):
636632
snippets.create_client_with_query_options(instance_id, sample_database.database_id)

0 commit comments

Comments
 (0)