forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #500 from Altinity/backports/24.3.11/65190_support…
…_aliases_in_parameterized_view_function 24.3 Backport of PR ClickHouse#65190: Support aliases in parametrized view function (only new analyzer)
- Loading branch information
Showing
5 changed files
with
49 additions
and
6 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
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
5 changes: 5 additions & 0 deletions
5
tests/queries/0_stateless/03167_parametrized_view_with_cte.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,5 @@ | ||
OK | ||
123 | ||
123 | ||
123 | ||
123 |
7 changes: 7 additions & 0 deletions
7
tests/queries/0_stateless/03167_parametrized_view_with_cte.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,7 @@ | ||
SET allow_experimental_analyzer=1; | ||
CREATE OR REPLACE VIEW param_test AS SELECT {test_str:String} as s_result; | ||
WITH 'OK' AS s SELECT * FROM param_test(test_str=s); | ||
WITH (SELECT 123) AS s SELECT * FROM param_test(test_str=s); | ||
WITH (SELECT 100 + 20 + 3) AS s SELECT * FROM param_test(test_str=s); | ||
WITH (SELECT number FROM numbers(123, 1)) AS s SELECT * FROM param_test(test_str=s); | ||
WITH CAST(123, 'String') AS s SELECT * FROM param_test(test_str=s); |