Module exceptions (1.40.0)

Public exceptions and warnings used across BigQuery DataFrames.

Classes

AmbiguousWindowWarning

A query may produce nondeterministic results as the window may be ambiguously ordered.

ApiDeprecationWarning

The API has been deprecated.

BadIndexerKeyWarning

The indexer key is not used correctly.

CleanupFailedWarning

Bigframes failed to clean up a table resource.

ColorFormatter

ColorFormatter()

API documentation for ColorFormatter class.

DefaultIndexWarning

Default index may cause unexpected costs.

DefaultLocationWarning

No location was specified, so using a default one.

NullIndexError

Object has no index.

NullIndexPreviewWarning

Unused. Kept for backwards compatibility.

Was used when null index feature was in preview.

OperationAbortedError

Operation is aborted.

OrderRequiredError

Operation requires total row ordering to be enabled.

OrderingModePartialPreviewWarning

Unused. Kept for backwards compatibility.

Was used when ordering mode 'partial' was in preview.

PreviewWarning

The feature is in preview.

QueryComplexityError

Query plan is too complex to execute.

TimeTravelDisabledWarning

A query was reattempted without time travel.

UnknownDataTypeWarning

Data type is unknown.

UnknownLocationWarning

The location is set to an unknown value.

Modules Functions

format_message

format_message(message: str, fill: bool = True)

Formats a warning message with ANSI color codes for the warning color.

Parameters
Name Description
message str

The warning message string.

fill bool

Whether to wrap the message text using textwrap.fill. Defaults to True. Set to False to prevent wrapping, especially if the message already contains newlines.