Skip to content

Commit 524ac91

Browse files
authored
chore: add blob experimental flag (#1150)
* chore: add blob experimental flag * revert notebook
1 parent f192324 commit 524ac91

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

bigframes/_config/experiment_options.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ExperimentOptions:
2222

2323
def __init__(self):
2424
self._semantic_operators = False
25+
self._blob = False
2526

2627
@property
2728
def semantic_operators(self) -> bool:
@@ -34,3 +35,15 @@ def semantic_operators(self, value: bool):
3435
"Semantic operators are still under experiments, and are subject to change in the future."
3536
)
3637
self._semantic_operators = value
38+
39+
@property
40+
def blob(self) -> bool:
41+
return self._blob
42+
43+
@blob.setter
44+
def blob(self, value: bool):
45+
if value is True:
46+
warnings.warn(
47+
"BigFrames Blob is still under experiments. It may not work and subject to change in the future."
48+
)
49+
self._blob = value

tests/unit/_config/test_experiment_options.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,18 @@ def test_semantic_operators_set_true_shows_warning():
3030
options.semantic_operators = True
3131

3232
assert options.semantic_operators is True
33+
34+
35+
def test_blob_default_false():
36+
options = experiment_options.ExperimentOptions()
37+
38+
assert options.blob is False
39+
40+
41+
def test_blob_set_true_shows_warning():
42+
options = experiment_options.ExperimentOptions()
43+
44+
with pytest.warns(UserWarning):
45+
options.blob = True
46+
47+
assert options.blob is True

0 commit comments

Comments
 (0)