This repository was archived by the owner on Mar 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -665,8 +665,12 @@ def _get_graph_schema(
665665 FROM `{ query_job .configuration .destination .project } .{ dataset_id } `.INFORMATION_SCHEMA.PROPERTY_GRAPHS
666666 WHERE PROPERTY_GRAPH_NAME = @graph_id
667667 """
668- job_config = bigquery .QueryJobConfig (query_parameters = [bigquery .ScalarQueryParameter ("graph_id" , "STRING" , graph_id )])
669- info_schema_results = bq_client .query (info_schema_query , job_config = job_config ).to_dataframe ()
668+ job_config = bigquery .QueryJobConfig (
669+ query_parameters = [bigquery .ScalarQueryParameter ("graph_id" , "STRING" , graph_id )]
670+ )
671+ info_schema_results = bq_client .query (
672+ info_schema_query , job_config = job_config
673+ ).to_dataframe ()
670674
671675 if info_schema_results .shape == (1 , 1 ):
672676 return graph_server ._convert_schema (info_schema_results .iloc [0 , 0 ])
Original file line number Diff line number Diff line change @@ -1157,7 +1157,7 @@ def test_add_graph_widget_with_schema(monkeypatch):
11571157 query_str = call_args [0 ]
11581158 assert "INFORMATION_SCHEMA.PROPERTY_GRAPHS" in query_str
11591159 assert "PROPERTY_GRAPH_NAME = @graph_id" in query_str
1160-
1160+
11611161 # Verify query parameter
11621162 job_config = call_kwargs ["job_config" ]
11631163 param = job_config .query_parameters [0 ]
You can’t perform that action at this time.
0 commit comments