5959
6060from bigframes import exceptions as bfe
6161from bigframes import version
62+ import bigframes ._config
6263import bigframes ._config .bigquery_options as bigquery_options
6364import bigframes .clients
6465import bigframes .constants
@@ -554,7 +555,7 @@ def read_gbq_query( # type: ignore[overload-overlap]
554555 col_order : Iterable [str ] = ...,
555556 filters : third_party_pandas_gbq .FiltersType = ...,
556557 dry_run : Literal [False ] = ...,
557- allow_large_results : bool = ...,
558+ allow_large_results : Optional [ bool ] = ...,
558559 ) -> dataframe .DataFrame :
559560 ...
560561
@@ -571,7 +572,7 @@ def read_gbq_query(
571572 col_order : Iterable [str ] = ...,
572573 filters : third_party_pandas_gbq .FiltersType = ...,
573574 dry_run : Literal [True ] = ...,
574- allow_large_results : bool = ...,
575+ allow_large_results : Optional [ bool ] = ...,
575576 ) -> pandas .Series :
576577 ...
577578
@@ -587,7 +588,7 @@ def read_gbq_query(
587588 col_order : Iterable [str ] = (),
588589 filters : third_party_pandas_gbq .FiltersType = (),
589590 dry_run : bool = False ,
590- allow_large_results : bool = True ,
591+ allow_large_results : Optional [ bool ] = None ,
591592 ) -> dataframe .DataFrame | pandas .Series :
592593 """Turn a SQL query into a DataFrame.
593594
@@ -672,7 +673,7 @@ def read_gbq_query(
672673 allow_large_results (bool, optional):
673674 Whether to allow large query results. If ``True``, the query
674675 results can be larger than the maximum response size.
675- Defaults to ``True ``.
676+ Defaults to ``bpd.options.compute.allow_large_results ``.
676677
677678 Returns:
678679 bigframes.pandas.DataFrame or pandas.Series:
@@ -693,6 +694,9 @@ def read_gbq_query(
693694 elif col_order :
694695 columns = col_order
695696
697+ if allow_large_results is None :
698+ allow_large_results = bigframes ._config .options ._allow_large_results
699+
696700 return self ._loader .read_gbq_query ( # type: ignore # for dry_run overload
697701 query = query ,
698702 index_col = index_col ,
0 commit comments