QueryResult#
- class polars_cloud.QueryResult(result: QueryInfo, status: QueryStatus)
The result of a Polars Cloud query.
Note
This object should not be instantiated directly by the user.
Attributes:
head
The first n rows of the result.
n_rows_total
Total rows that are outputted by the result.
total_stages
Get total planned stages of physical plan.
failed_stages
Total failed stages.
finished_stages
Total executed stages.
location
Location where the result is written.
file_type
The file type where the result is written to.
Methods:
stage_statistics
Return the statistics of a specific stage.
lazy
Convert the
QueryResult
into aLazyFrame
.- property head: DataFrame | None
The first n rows of the result.
- property total_stages: int
Get total planned stages of physical plan.
- property failed_stages: int
Total failed stages.
- property finished_stages: int
Total executed stages.
This can be more than total stages, as failed stages can be rescheduled.
- property file_type: FileType
The file type where the result is written to.
- stage_statistics( ) StageStatistics | None | list[StageStatistics]
Return the statistics of a specific stage.
- Parameters:
- stage_number
if None this will give a list of stages.
- lazy() LazyFrame
Convert the
QueryResult
into aLazyFrame
.