File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,21 @@ class Options:
56
56
"""Global options affecting BigQuery DataFrames behavior."""
57
57
58
58
def __init__ (self ):
59
+ self .reset ()
60
+
61
+ def reset (self ) -> Options :
62
+ """Reset the option settings to defaults.
63
+
64
+ Returns:
65
+ bigframes._config.Options: Options object with default values.
66
+ """
59
67
self ._local = ThreadLocalConfig ()
60
68
61
69
# BigQuery options are special because they can only be set once per
62
70
# session, so we need an indicator as to whether we are using the
63
71
# thread-local session or the global session.
64
72
self ._bigquery_options = bigquery_options .BigQueryOptions ()
73
+ return self
65
74
66
75
def _init_bigquery_thread_local (self ):
67
76
"""Initialize thread-local options, based on current global options."""
Original file line number Diff line number Diff line change @@ -74,4 +74,4 @@ def run_quickstart(project_id: str) -> None:
74
74
75
75
# close session and reset option so not to affect other tests
76
76
bpd .close_session ()
77
- bpd .options .bigquery . ordering_mode = "strict"
77
+ bpd .options .reset ()
You can’t perform that action at this time.
0 commit comments