starrocks icon indicating copy to clipboard operation
starrocks copied to clipboard

Trino dialect supports combine '*' in select list with GROUP BY

Open LZGH opened this issue 1 year ago • 1 comments

Feature request

Is your feature request related to a problem? Please describe. Trino support combine '*' in select list with GROUP BY. StarRocks will report an error when execute 'select * from fe_locks group by lock_type,lock_object'

Describe the solution you'd like

Supports the same syntax as trino

Describe alternatives you've considered

Additional context

LZGH avatar Oct 21 '24 08:10 LZGH

What's the behavior of other columns except the GROUP BY columns?

jaogoy avatar Oct 21 '24 10:10 jaogoy

What's the behavior of other columns except the GROUP BY columns?

The sql I gave is not very suitable.GROUP BY will contains all fields. If the table has three fields. 'select * from table group by 1,2,3' can be executed in trino

LZGH avatar Oct 23 '24 07:10 LZGH

@kateshaowanjou or @wangsimo0 Can you help add this feature to trino compatible task #40894 ?

LZGH avatar Feb 21 '25 03:02 LZGH

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

github-actions[bot] avatar Sep 01 '25 11:09 github-actions[bot]