We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks! use tiflash pr: #7169
MySQL [test]> select count(1), grouping(a), grouping(b) from t group by a, b with rollup; +----------+-------------+-------------+ | count(1) | grouping(a) | grouping(b) | +----------+-------------+-------------+ | 1 | 0 | 0 | | 2 | 1 | 1 | | 2 | 0 | 0 | | 1 | 0 | 0 | +----------+-------------+-------------+ 4 rows in set (0.072 sec) MySQL [test]> select count(1), grouping(b), grouping(a) from t group by a, b with rollup; +----------+-------------+-------------+ | count(1) | grouping(b) | grouping(a) | +----------+-------------+-------------+ | 1 | 0 | 0 | | 2 | 1 | 1 | | 1 | 0 | 0 | | 2 | 1 | 1 | +----------+-------------+-------------+ 4 rows in set (0.063 sec)
MySQL [test]> select count(1), grouping(a), grouping(b) from t group by a, b with rollup; +----------+-------------+-------------+ | count(1) | grouping(a) | grouping(b) | +----------+-------------+-------------+ | 1 | 0 | 0 | | 2 | 1 | 1 | | 2 | 0 | 1 | | 1 | 0 | 0 | +----------+-------------+-------------+ 4 rows in set (0.072 sec) MySQL [test]> select count(1), grouping(b), grouping(a) from t group by a, b with rollup; +----------+-------------+-------------+ | count(1) | grouping(b) | grouping(a) | +----------+-------------+-------------+ | 1 | 0 | 0 | | 2 | 1 | 0 | | 1 | 0 | 0 | | 2 | 1 | 1 | +----------+-------------+-------------+ 4 rows in set (0.063 sec)
as description shows.
the first encouter-ed grouping function's result will be referred to the second grouping function.
master
The text was updated successfully, but these errors were encountered:
/assign @AilinKid
Sorry, something went wrong.
function: fix grouping function result name (#7718)
56d851d
close #7717
AilinKid
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
use tiflash pr: #7169
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
as description shows.
the first encouter-ed grouping function's result will be referred to the second grouping function.
4. What is your TiFlash version? (Required)
master
The text was updated successfully, but these errors were encountered: