Skip to content

Group by Custom field: string measure support #874

@gokulanv

Description

@gokulanv

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A simpler version of the query that I would like to write in Cube.Js is :
SELECT
con.id,
GROUP_CONCAT(t.title) FROM Contacts con LEFT JOIN Titles t on con.titleid = t.id;

Where I need to group only by con.id

Describe the solution you'd like
A clear and concise description of what you want to happen.
SELECT
con.id,
GROUP_CONCAT(t.title) FROM Contacts con LEFT JOIN Titles t on con.titleid = t.id GROUP BY con.id;

Additional context
Add any other context or screenshots about the feature request here.

The query generated by Cube Js is:
SELECT
con.id,
GROUP_CONCAT(t.title) FROM Contacts con LEFT JOIN Titles t on con.titleid = t.id GROUP BY 1, 2;
This gives an erroneous output

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue is a question. Please use Stack Overflow for questions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions