Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature](nereids) deal the slots that appear both in agg func and grouping sets #31318 #40623

Draft
wants to merge 1 commit into
base: branch-2.0
Choose a base branch
from

Commits on Sep 10, 2024

  1. [feature](nereids) deal the slots that appear both in agg func and gr…

    …ouping sets (apache#31318)
    
    this PR support slot appearing both in agg func and grouping sets.
    sql like below:
    select sum(a) from t group by grouping sets ((a));
    
    Before this PR, Nereids throw exception like below:
    col_int_undef_signed cannot both in select list and aggregate functions when using GROUPING SETS/CUBE/ROLLUP, please use union instead.
    
    This PR removes the restriction and supports this situation.
    feiniaofeiafei committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    9da49e1 View commit details
    Browse the repository at this point in the history