Starburst Galaxy

  • Get started

  • Working with data

  • Starburst AI

  • Context Studio

  • Data engineering

  • Developer tools

  • Cluster administration

  • Security and compliance

  • Troubleshooting

  • Galaxy status arrow_outward

  • Reference

  • Query details #

    Query details provide information about an individual query. Use query details to inspect query metadata, execution status, timing, and other available metrics to identify performance and troubleshoot potential issues.

    You can access query details in three ways:

    The query details pane includes the following tabs:

    General tab #

    The General tab displays information for successful and failed queries in the following sections:

    Query text #

    The query text section displays the full submitted query and includes the following interactive icons:

    • code: opens the query editor. This option is only available when the cluster is running.
    • content_copy: copies the query to the clipboard for efficient transfer to other tools.
    • fullscreen: opens to full screen view.

    Basic information #

    Detailed information for successful and canceled queries includes:

    • Role: the role used by the user when submitting the query.
    • Client: information about the client application submitting the query.
    • CPU time: the total CPU time across all workers and tasks in milliseconds.
    • Cluster: the cluster used to run the query.
    • Client address: the address of the client that submitted the query.
    • Elapsed time: the elapsed time for processing the query in milliseconds.

    Canceled queries display the following status Failed - canceled by user.

    When queries fail for other reasons, the basic information includes these additional details:

    • Error type: the classification of an error.
      • User Canceled: the query was stopped by the user.
      • User Error: the SQL query statement submitted by the user contained a syntactic or semantic error.
    • Error name: the name of the error, such as syntax error.
      • Syntax error: a user error indicating that the query submitted by the user contains a syntactic or semantic error.

    Failure log #

    The failure log shows the technical details of a failed query. It includes the error message from the query engine, which states what went wrong. Use it to diagnose the problem.

    Index and cache usage #

    The Index and cache usage section appears when queries are run on an object storage data source in an accelerated cluster. These queries generate the following performance and resource utilization metrics:

    • Overall: the combined score for performance gains from filtering and projection.
    • Filtering: indicates acceleration based on indexing. The percentage score for independent predicates in the WHERE clause.
    • Projection: indicates acceleration based on the data cache. The percentage score for items in SELECT clauses.

    These metrics show what percentage of the total query splits Starburst Warp Speed handles.

    Query execution #

    The Query execution diagram displays performance and timing information for each step of the querying process, and includes the following statuses:

    • Submitted: the query has been accepted by the system for processing, along with the date and time it was submitted.
    • Queuing: query processing is on hold, waiting for the other queries to be processed. Displays the time spent in milliseconds.
    • Analyzing: the SQL query text is verified and analyzed against metadata from the data sources and SQL semantics. Displays the time spent in milliseconds.
    • Waiting for resources: query processing is on hold, waiting for resources to process the query. The value can include analysis time. Displays the time spent in milliseconds.
    • Planning: the query execution plan is created and optimized with the help of metadata, including table statistics. Displays the time spent in milliseconds.
    • Executing: the query is executing and has at least one running task.
    • Failed: query execution has failed. Displays the date and time of failure.
    • Finished: the query processing has completed and all output was consumed.

      query details general tab

    Stages tab #

    The Stages tab shows how your query was broken down into steps and run. Each step is called a stage.

    The following information is included on this tab:

    • User: the user who submitted the query.
    • Query state: the current status of the query in the processing flow.
    • CPU time: total cumulative CPU time used by the query.
    • Elapsed time: the elapsed time for the query.
    • Active: the percentage ratio of processing time compared to wait times.

    Query stage information is rendered in two different views, List and Graph. Use the toggle to switch between the two visualizations.

    List view #

    The List view focuses on statistics about stages and their tasks. This view is useful for examining stage performance and understanding whether all nodes in the cluster perform well.

    Several stage-level statistics are shown:

    • State: the state of the task.
    • CPU time: the total cumulative CPU time used by the query.
    • Active percentage: the percentage of CPU time out of the total scheduled time, which includes both CPU time and waiting times. This metric estimates the query’s processing efficiency. Ideally, the value should be a high percentage. A low percentage indicates the query is spending a long time reading from storage.
    • Input buffer: the data received during the exchange that is kept in buffers on the target and source sides of the exchange. The buffer sizes for each side can be adjusted independently.
    • Tasks: the total number of tasks.

      Query details stages list view

    Graph view #

    The Graph view provides a visualization of the distributed query plan and shows how plan fragments are mapped to stages. The visual representation is a tree, in which nodes represent stages and edges indicate how data is transferred between stages. A stage processes data produced by its children.

    Each of the nodes shows stage-level statistics, as well as a graphical representation of the corresponding plan fragment. A plan fragment is rendered as a tree of operators. Finally, statistics about the number of rows and total size of the data read from each child stage are also shown.

    To view the graph in full screen mode, click View plan in full screen.

    Query details stages graph view

    Lake acceleration tab #

    The Lake Acceleration tab provides a visual representation of the information presented in the Index and cache usage section. The same information is organized into columns corresponding to each entity. Each entity is identified by its fully qualified name, which consists of the catalog, schema, table, and column, in that order. For example: benchmark.iceberg_tpcds_sf1000_01.store_sales.ss_net_profit.

    Query details lake acceleration tab

    Cluster resources tab #

    The Cluster resources tab shows the current query’s cluster usage statistics. These are represented in the following charts:

    • CPU usage: the total CPU usage across workers and threads.
    • Memory: the total memory used by a query.
    • Cluster size: the number of running workers.
    • Queries: the number of running and queued queries at a given time.

    Charts highlight each stage of the query during the execution process:

    Waiting for resources
    The query is being dispatched to a coordinator.
    Planning
    Query execution is being started.
    Executing
    The query has at least one running task.
    All stages
    A cumulative view of query execution stages

    To see cluster details, click View cluster.

    Query details cluster resources tab

    Profile tab #

    The Profile tab provides a query execution insights.

    Tables #

    The tables section organizes information about the accessed tables in the following columns:

    • Catalog: the name of the catalog that contains the table in this row.
    • Schema: the name of the schema that contains the table in this row.
    • Table: the name of the table accessed by the SQL query.
    • Rows: the number of rows processed from the table.
    • Bytes: the number of bytes processed from the table.
    • Read/Write: the operation type for the data.

    Hover over a column name to reveal sorting arrows. You can sort the information in ascending or descending order.

    Query analysis #

    The Query analysis section shows each stage of the query process in its own expandable block. Each step in a stage shows its name, processing time, how many rows went in and out, and how many tasks ran it at the same time.

    The header section shows the following stage-level metrics:

    • CPU: the processing time used by this step.
    • Scheduled: the time the step was scheduled to run on workers.
    • Peak memory: the most memory the stage used.
    • Network In: the data received from other stages.
    • Physical In: the data read from storage.
    • Output Buffer: shows how backed up the stage’s results are (0% is healthy).
    • Tasks: how many workers the stage ran on.

    If a stage is identified as slowing down the query, it is flagged as a Bottleneck.

    Inside a stage, each step shows the following metrics:

    • {step-name}: the name of the step, for example, TopNNode.
    • CPU: the processing time used by the step.
    • Scheduled: the time the step was scheduled to run on workers.
    • In: the number of rows the step received.
    • Out: the number of rows the step passed on to the next step.
    • Drivers: the number of parallel workers that ran the step. More drivers means the work was split up and run at the same time.

    If a problem is identified at a particular step, the node is marked with an Issues badge.

    Expand the step to read an explanation of each identified issue.

    Explain plan #

    Click View explain plan to see a full EXPLAIN plan of the submitted query, including the costs for each stage. It is identical to the output from EXPLAIN ANALYZE <query>.

    Use the following interactive icons:

    • content_copy: copies the query to the clipboard for efficient transfer to other tools.
    • fullscreen: Opens the explain plan in full view.

    Execution details #

    Execution details show statistics about how the query was processed.

    The execution details include the following metrics:

    • Elapsed time: the amount of time in milliseconds it took the query to execute.
    • CPU time: the total accumulated CPU time in milliseconds across workers and threads.
    • Parallelism: the estimated value of how much the workload was processed in parallel, calculated from CPU time divided by the Elapsed time.
    • Active: the estimated value of how efficient processing was performed, calculated from CPU time divided by the time spent waiting as scheduled.
    • Rows read: the total number of rows read from the data sources.
    • Bytes read: the total number of bytes read from the data sources.
    • Rows written: the total number of written rows.
    • Bytes written: the total number of written bytes.
    • Peak memory: the maximum amount of memory directly tied to query resources used by a query at one time.

      Query details profile tab

    Recommendations tab #

    The Recommendations tab lets you review critical issues, potential risks, and suggestions for improvement.

    Diagnostic stats include the number of Critical issues, Warnings, the total number of Issues found, and Recommended actions.

    Key issues and bottlenecks #

    The Key issues and bottlenecks section shows issues that were detected during query execution. You may see issues, such as MissingStats or BigOutput. Each finding may include actionable recommendations to help you address areas that need attention.

    Each issue is also marked with an impact badge.

    Query details recommendations tab

    Run AI analysis #

    Run AI analysis is only available to users assigned to roles that have the Generative AI features account-level privilege.

    Running AI analysis consumes AI tokens.

    To get a detailed, plain-language performance report on all flagged bottlenecks, issues, and recommendations for the query, click Run AI analysis.

    Query-details-ai-analysis-button