Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-40763

Wrong result: `GROUP_CONCAT`/`JSON_ARRAYAGG` returns 0 rows when a materialized derived table containing a BLOB-family column is accessed via `derived_with_keys` (`ref=const`)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.11.16
    • None
    • Optimizer, Optimizer - CTE
    • None
    • AWS RDS
    • Unexpected results

    Description

      We had an issue using JSON_ARRAYAGG on top a multi-table derived containting several CTEs exposing JSON fields.

      The same query without the function returned rows, even with grouping. When adding the aggregation it silently fails resulting an empty set.

      You'll find all informations in MD file attached.
      It's AI generated, but human tested.

      We noticed the bug while testing a view to be implemented, so it's not found by AI.

      Attachments

        Activity

          People

            shipjain Shipra Jain
            fcamuffo Francesco Camuffo
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.