Skip to content

Commit 8753bdd

Browse files
authored
feat: create a separate OrderingModePartialPreviewWarning for more fine-grained warning filters (#879)
1 parent 2158818 commit 8753bdd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bigframes/exceptions.py

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class NullIndexError(ValueError):
4747
"""Object has no index."""
4848

4949

50+
class OrderingModePartialPreviewWarning(PreviewWarning):
51+
"""Ordering mode 'partial' is in preview."""
52+
53+
5054
class OrderRequiredError(ValueError):
5155
"""Operation requires total row ordering to be enabled."""
5256

bigframes/session/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def __init__(
302302
if not self._strictly_ordered:
303303
warnings.warn(
304304
"Partial ordering mode is a preview feature and is subject to change.",
305-
bigframes.exceptions.PreviewWarning,
305+
bigframes.exceptions.OrderingModePartialPreviewWarning,
306306
)
307307

308308
# Sequential index needs total ordering to generate, so use null index with unstrict ordering.

0 commit comments

Comments
 (0)