Compare commits

...

2 Commits

Author SHA1 Message Date
Yarik Briukhovetskyi
7dcaacab9d
Update 03274_aliases_in_udf.sql 2024-11-21 01:00:37 +01:00
Yarik Briukhovetskyi
9cfee9cddb
Update 03274_aliases_in_udf.reference 2024-11-21 00:55:26 +01:00
2 changed files with 10 additions and 2 deletions

View File

@ -2,4 +2,4 @@ FIX ISSUE #69143
a
b
EXPAIN SYNTAX OF UDF
SELECT ((4 + 2) + 1, ((4 + 2) + 1) + 2)
SELECT ((4 + 2) + 1, ((4 + 2) + 1) + 2)

View File

@ -1,11 +1,15 @@
SELECT 'FIX ISSUE #69143';
DROP FUNCTION IF EXISTS test_function;
DROP FUNCTION IF EXISTS test_03274;
DROP TABLE IF EXISTS test_table;
CREATE OR REPLACE FUNCTION test_function AS ( input_column_name ) -> ((
'1' AS a,
input_column_name AS input_column_name
).2);
CREATE TABLE test_table
CREATE TABLE IF NOT EXISTS test_table
(
`metadata_a` String,
`metadata_b` String
@ -30,3 +34,7 @@ SELECT 'EXPAIN SYNTAX OF UDF';
CREATE OR REPLACE FUNCTION test_03274 AS ( x ) -> ((x + 1 as y, y + 2));
EXPAIN SYNTAX SELECT test_03274(4 + 2);
DROP FUNCTION IF EXISTS test_function;
DROP FUNCTION IF EXISTS test_03274;
DROP TABLE IF EXISTS test_table;