Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions packages/bigframes/bigframes/_config/compute_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,6 @@ class ComputeOptions:
int | None: Number of rows, if set.
"""

semantic_ops_confirmation_threshold: Optional[int] = 0
"""
Deprecated.

.. deprecated:: 1.42.0
Semantic operators are deprecated. Please use the functions in
:mod:`bigframes.bigquery.ai` instead.

"""

semantic_ops_threshold_autofail = False
"""
Deprecated.

.. deprecated:: 1.42.0
Semantic operators are deprecated. Please use the functions in
:mod:`bigframes.bigquery.ai` instead.

"""

def assign_extra_query_labels(self, **kwargs: Any) -> None:
"""
Assigns additional custom labels for query configuration. The method updates the
Expand Down
43 changes: 0 additions & 43 deletions packages/bigframes/bigframes/_config/experiment_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,52 +25,9 @@ class ExperimentOptions:
"""

def __init__(self):
self._semantic_operators: bool = False
self._ai_operators: bool = False
self._sql_compiler: Literal["legacy", "stable", "experimental"] = "stable"
self._enable_python_transpiler: bool = False

@property
def semantic_operators(self) -> bool:
"""Deprecated.

**Examples:**

>>> import bigframes.pandas as bpd
>>> bpd.options.experiments.semantic_operators = True # doctest: +SKIP
"""
return self._semantic_operators

@semantic_operators.setter
def semantic_operators(self, value: bool):
if value is True:
msg = bfe.format_message(
"Semantic operators are deprecated, and will be removed in the future"
)
warnings.warn(msg, category=FutureWarning)
self._semantic_operators = value

@property
def ai_operators(self) -> bool:
"""If True, allow using the AI operators.

**Examples:**

>>> import bigframes.pandas as bpd
>>> bpd.options.experiments.ai_operators = True # doctest: +SKIP
"""
return self._ai_operators

@ai_operators.setter
def ai_operators(self, value: bool):
if value is True:
msg = bfe.format_message(
"AI operators are still under experiments, and are subject "
"to change in the future."
)
warnings.warn(msg, category=bfe.PreviewWarning)
self._ai_operators = value

@property
def sql_compiler(self) -> Literal["legacy", "stable", "experimental"]:
"""Set to 'experimental' to try out the latest in compilation experiments..
Expand Down
19 changes: 0 additions & 19 deletions packages/bigframes/bigframes/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@
import bigframes.functions
import bigframes.operations as ops
import bigframes.operations.aggregations as agg_ops
import bigframes.operations.ai
import bigframes.operations.plotting as plotting
import bigframes.operations.semantics
import bigframes.operations.structs
import bigframes.series
import bigframes.session._io.bigquery
Expand Down Expand Up @@ -5286,20 +5284,3 @@ def _throw_if_null_index(self, opname: str):
raise bigframes.exceptions.NullIndexError(
f"DataFrame cannot perform {opname} as it has no index. Set an index using set_index."
)

@property
def semantics(self):
msg = bfe.format_message(
"The 'semantics' property will be removed. Please use 'bigframes.bigquery.ai' instead."
)
warnings.warn(msg, category=FutureWarning)
return bigframes.operations.semantics.Semantics(self)

@property
def ai(self):
"""Returns the accessor for AI operators."""
msg = bfe.format_message(
"The 'ai' property will be removed. Please use 'bigframes.bigquery.ai' instead."
)
warnings.warn(msg, category=FutureWarning)
return bigframes.operations.ai.AIAccessor(self)
Loading
Loading