Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-5582

max_statement_time not working for CTEs

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 23.02.4
    • None
    • None
    • None

    Description

      I am benchmarking several queries on Aria and Columnstore. Some of these queries take longer on the Columnstore. Hence, I wanted to abort long-running queries using the `max_statement_time` option. I use the Python SQLAlchemy and pymysql library to connect to the database.
      When profiling my queries, I have no issues using `max_statement_time` along with Aria Tables. However, I have several issues when I attempt to profile the same queries on the Columnstore tables.
      First, a long-running query is aborted and shows as killed in the PROCESSLIST. However, this query doesn't end and stays indefinitely on the server, requiring a restart. Second, I noticed that the `max_statement_time` fails specifically on queries where I have several CTEs, not queries that are simple SELECT statements.
      This behaviour is odd as there is no issue for the Aria engine and the same CTE queries alogn with `max_statement_time`.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Mahadeva Ananth Mahadevan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.