Skip to content

Pinot connector: column index for ... was not found #28538

@sumit-gupta-sgt

Description

@sumit-gupta-sgt

Description:
Using Pinot passthrough queries in Trino 479, column aliases e.g., 'No. of msg' are no longer recognized. The same query works in Trino 446.

SELECT *
FROM "SELECT user, SUM(msg) AS 'No. of msg'
      FROM test
      WHERE p_date >= ToDateTime(ago('P29D'),
                               concat(concat('yyyy-', UPPER('MM'),''),'-dd',''))
        AND id IN ('xx')
      GROUP BY 1
      ORDER BY 2 DESC
      LIMIT 300";

Expected behavior (Trino 446):

  • Query executes successfully.
  • Column alias 'No. of msg' is recognized/displayed.

Actual behavior (Trino 479):

  • Fails with:

Query failed: column index for 'no. of msg' was not found

  • Alias cannot be referenced; Trino ignores Pinot passthrough column names.

Environment:

  • Trino 479 (failing)
  • Trino 446 (working)
  • Pinot connector

Severity: High — backward compatibility broken for Pinot passthrough queries relying on aliases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions