-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 #55747 from ClickHouse/backport/23.8/55602
Backport #55602 to 23.8: Fix crash in QueryNormalizer with cyclic aliases
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 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
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 @@ | ||
1 2 3 |
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,17 @@ | ||
|
||
SET max_ast_depth = 10_000_000; | ||
|
||
SELECT | ||
val, | ||
val + 1 as prev, | ||
val + prev as val | ||
FROM ( SELECT 1 as val ) | ||
; -- { serverError CYCLIC_ALIASES, TOO_DEEP_RECURSION } | ||
|
||
|
||
SELECT | ||
val, | ||
val + 1 as prev, | ||
val + prev as val2 | ||
FROM ( SELECT 1 as val ) | ||
; |