ClusterInfo#

class polars_nanook.ClusterInfo

Static information about a compute cluster.

Attributes:

anonymous_result_location

Directory where results of queries without an explicit sink are written.

versions

Versions of the compute plane components.

allow_local_sinks

Whether queries may write to the cluster's local filesystem.

allow_local_scans

Whether queries may read from the cluster's local filesystem.

max_workers_per_query

Most workers a single query can use, None if unlimited.

default_workers_per_query

Workers a query uses when it doesn't set a number of workers.

property anonymous_result_location: str | None

Directory where results of queries without an explicit sink are written.

This is the cluster’s scheduler.anonymous_result_location setting as a URL ending in /, e.g. s3://bucket/query_outputs/. Each query writes its result to <anonymous_result_location><query_id>/. None if the cluster has no such location configured.

property versions: ComputeVersions

Versions of the compute plane components.

property allow_local_sinks: bool

Whether queries may write to the cluster’s local filesystem.

property allow_local_scans: bool

Whether queries may read from the cluster’s local filesystem.

property max_workers_per_query: int | None

Most workers a single query can use, None if unlimited.

Queries that ask for more workers are capped to this limit.

property default_workers_per_query: int | None

Workers a query uses when it doesn’t set a number of workers.

None if such a query uses all available workers.

class polars_nanook.ComputeVersions

Versions of the compute plane components.

Attributes:

compute_plane_version

Version of the compute plane.

polars_python_version

Version of the Polars Python package on the cluster.

polars_rust_revision

Git revision of the Polars Rust crates on the cluster.

property compute_plane_version: str

Version of the compute plane.

property polars_python_version: str

Version of the Polars Python package on the cluster.

property polars_rust_revision: str

Git revision of the Polars Rust crates on the cluster.