For the complete documentation index, see llms.txt. This page is also available as Markdown.

Execution Plan (CSEP)

The ColumnStore Execution Plan (CSEP) is the internal query-plan representation in MariaDB ColumnStore, generated from SELECT_LEX and viewable through calSetTrace.

Overview

The ColumnStore storage engine uses a ColumnStore Execution Plan (CSEP) to represent a query plan internally.

When the select handler receives the SELECT_LEX object, it transforms it into a CSEP as part of the query planning and optimization process. For additional information, see "MariaDB ColumnStore Query Evaluation."

Viewing the CSEP

The CSEP for a given query can be viewed by performing the following:

  1. Calling the calSetTrace(1) function:

SELECT calSetTrace(1);
  1. Executing the query:

SELECT column1, column2
FROM columnstore_tab
WHERE column1 > '2020-04-01'
AND column1 < '2020-11-01';
  1. Calling the calGetTrace() function:

SELECT calGetTrace();

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?