mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Added functional tests
This commit is contained in:
parent
6c5ec68a7c
commit
549a55e4a2
@ -13,4 +13,22 @@
|
||||
<command>cd /; clickhouse-local --input-format TabSeparated --output-format TabSeparated --structure 'x UInt64, y UInt64' --query "SELECT x + y FROM table"</command>
|
||||
<execute_direct>0</execute_direct>
|
||||
</function>
|
||||
<function>
|
||||
<type>executable</type>
|
||||
<name>test_function_with_parameter</name>
|
||||
<return_type>UInt64</return_type>
|
||||
<argument>
|
||||
<type>UInt64</type>
|
||||
</argument>
|
||||
<argument>
|
||||
<type>UInt64</type>
|
||||
</argument>
|
||||
<parameter>
|
||||
<name>test_parameter</name>
|
||||
<type>UInt64</type>
|
||||
</parameter>
|
||||
<format>TabSeparated</format>
|
||||
<command>cd /; clickhouse-local --input-format TabSeparated --output-format TabSeparated --structure 'x UInt64, y UInt64' --query "SELECT x + y + {test_parameter} FROM table"</command>
|
||||
<execute_direct>0</execute_direct>
|
||||
</function>
|
||||
</functions>
|
||||
|
@ -0,0 +1,2 @@
|
||||
5
|
||||
5
|
@ -0,0 +1,6 @@
|
||||
SELECT test_function_with_parameter('test')(1, 2); --{serverError 53}
|
||||
SELECT test_function_with_parameter(2, 2)(1, 2); --{serverError 36}
|
||||
SELECT test_function_with_parameter(1, 2); --{serverError 36}
|
||||
|
||||
SELECT test_function_with_parameter(2)(1, 2);
|
||||
SELECT test_function_with_parameter('2')(1, 2);
|
Loading…
Reference in New Issue
Block a user