Compare commits

..

No commits in common. "e8036e132c2b429354ee823059b1f1dfd9487791" and "7dcaacab9daa7dd491dde5fcaf698d2d85a21d85" have entirely different histories.

2 changed files with 11 additions and 11 deletions

View File

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

View File

@ -1,10 +1,10 @@
-- Tags: no-parallel
SELECT 'FIX ISSUE #69143';
DROP FUNCTION IF EXISTS test_function;
DROP FUNCTION IF EXISTS test_03274;
DROP TABLE IF EXISTS test_table;
CREATE FUNCTION IF NOT EXISTS 03274_test_function AS ( input_column_name ) -> ((
CREATE OR REPLACE FUNCTION test_function AS ( input_column_name ) -> ((
'1' AS a,
input_column_name AS input_column_name
).2);
@ -18,10 +18,10 @@ ENGINE = MergeTree()
ORDER BY tuple();
ALTER TABLE test_table ADD COLUMN mat_a String MATERIALIZED 03274_test_function(metadata_a);
ALTER TABLE test_table ADD COLUMN mat_a String MATERIALIZED test_function(metadata_a);
ALTER TABLE test_table MATERIALIZE COLUMN `mat_a`;
ALTER TABLE test_table ADD COLUMN mat_b String MATERIALIZED 03274_test_function(metadata_b);
ALTER TABLE test_table ADD COLUMN mat_b String MATERIALIZED test_function(metadata_b);
ALTER TABLE test_table MATERIALIZE COLUMN `mat_b`;
INSERT INTO test_table SELECT 'a', 'b';
@ -29,12 +29,12 @@ INSERT INTO test_table SELECT 'a', 'b';
SELECT mat_a FROM test_table;
SELECT mat_b FROM test_table;
SELECT 'EXPLAIN SYNTAX OF UDF';
SELECT 'EXPAIN SYNTAX OF UDF';
CREATE FUNCTION IF NOT EXISTS test_03274 AS ( x ) -> ((x + 1 as y, y + 2));
CREATE OR REPLACE FUNCTION test_03274 AS ( x ) -> ((x + 1 as y, y + 2));
EXPLAIN SYNTAX SELECT test_03274(4 + 2);
EXPAIN SYNTAX SELECT test_03274(4 + 2);
DROP FUNCTION 03274_test_function;
DROP FUNCTION test_03274;
DROP FUNCTION IF EXISTS test_function;
DROP FUNCTION IF EXISTS test_03274;
DROP TABLE IF EXISTS test_table;