Skip to content

SELECT * in a grouped query shows internal keys such as a + 1 and $$_VALUES_COUNT(DISTINCT b) #3151

Backlog

Description

@mathiasrw
alasql('SELECT * FROM ? GROUP BY a + 1', [[{a: 1, b: 2}, {a: 1, b: 3}]]);
alasql('SELECT *, COUNT(DISTINCT b) AS m FROM ? GROUP BY a', [[{a: 1, b: 2}, {a: 1, b: 3}]]);

It gives [{'a + 1': 2, a: 1, b: 2}] and [{a: 1, '$$_VALUES_COUNT(DISTINCT b)': {2: true, 3: true}, b: 2, m: 2}].

It should give [{a: 1, b: 2}] and [{a: 1, b: 2, m: 2}], as SQLite does.

Fixed by #2647.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions