Skip to content

Commit fa02dff

Browse files
add session started error
1 parent 683f349 commit fa02dff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bigframes/_config/bigquery_options.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ def enable_polars_execution(self) -> bool:
437437

438438
@enable_polars_execution.setter
439439
def enable_polars_execution(self, value: bool):
440+
if self._session_started and self._enable_polars_execution != value:
441+
raise ValueError(
442+
SESSION_STARTED_MESSAGE.format(attribute="enable_polars_execution")
443+
)
440444
if value is True:
441445
msg = bfe.format_message(
442446
"Polars execution is an experimental feature, and may not be stable. Must have polars installed."

0 commit comments

Comments
 (0)