ClickHouse/tests
Azat Khuzhin 308e094d04 Fix arrayJoin() capturing in lambda
Fixes the following LOGICAL_ERROR:

    $ clickhouse-client -q 'select arrayFilter((a) -> ((a, arrayJoin([[]])) IN (Null, [Null])), [])'
    2020.08.16 00:32:01.967102 [ 1744189 ] {b40a5ebd-d710-4f03-bb18-57db67de1181} <Error> : Logical error: 'Lambda captured argument arrayJoin(array(array())) not found in required columns.'.
    clickhouse-server: ../src/Common/Exception.cpp:45: DB::Exception::Exception(const string&, int): Assertion `false' failed.

Since there are multiple input columns for arrayJoin():

    (gdb) p captured_names_
    $6 = std::vector of length 3, capacity 4 = {"arrayJoin(array(array()))", "arrayJoin(array(array()))", "__set"}

While FunctionCaptureOverloadResolver cannot handle non-unique columns.
2020-08-25 21:06:21 +03:00
..
config use Atomic for system database 2020-08-12 23:40:13 +03:00
external_models/catboost
fuzz
instructions
integration Merge branch 'master' into fix_ddl_worker_timeouts 2020-08-24 11:50:11 +03:00
perf_drafts
performance Merge pull request #12550 from myrrc/bug/low-cardinality-arrays-optimisations 2020-08-24 22:31:29 +03:00
queries Fix arrayJoin() capturing in lambda 2020-08-25 21:06:21 +03:00
testflows Rename storages users.xml=>users_xml, disk=>local_directory. 2020-08-16 16:42:57 +03:00
users.d
.gitignore
clickhouse-client.xml
clickhouse-test Merge pull request #13615 from myrrc/docs/ci 2020-08-20 23:48:51 +03:00
clickhouse-test-server
client-test.xml
CMakeLists.txt
CTestCustom.cmake
decimals_dictionary.xml
ints_dictionary.xml
msan_suppressions.txt
server-test.xml Set custom prefix in server-test.xml too. 2020-08-03 15:01:00 +03:00
stress Try query fuzzer in stress test 2020-07-23 18:53:13 +03:00
strings_dictionary.xml
tsan_suppressions.txt
users.xml