-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63145 from ClickHouse/cherrypick/24.3/fd3fe73b5b1…
…0564243dfa04f205874e9e9aa83b5 Cherry pick #63047 to 24.3: Do not remove server constants from GROUP BY key for secondary query.
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/03095_group_by_server_constants_bug.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
r1 2 |
5 changes: 5 additions & 0 deletions
5
tests/queries/0_stateless/03095_group_by_server_constants_bug.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT serverUUID() AS s, count() FROM remote('127.0.0.{1,2}', system.one) GROUP BY s format Null; | ||
|
||
select getMacro('replica') as s, count() from remote('127.0.0.{1,2}', system.one) group by s; | ||
|
||
select uptime() as s, count() FROM remote('127.0.0.{1,2}', system.one) group by s format Null; |