```
/4/ :) SELECT tuple(NULL) < tuple(1)

→ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.) 
Exception on client:
Code: 271. DB::Exception: Data compressed with different methods, given method byte 0x6e, previous method byte 0x82: while receiving packet from localhost:9000
Stack trace:
0. /home/akuzm/ch4/ch/contrib/libcxx/include/exception:129: std::exception::capture() @ 0x2767c2 in /home/akuzm/ch4/build-clang10/src/libclickhouse_common_iod.so
1. /home/akuzm/ch4/ch/contrib/libcxx/include/exception:109: std::exception::exception() @ 0x1ad9b2 in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Foundation/lib_poco_foundationd.so
2. /home/akuzm/ch4/ch/contrib/poco/Foundation/src/Exception.cpp:28: Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x1c3da3 in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Foundation/lib_poco_foundationd.so
3. /home/akuzm/ch4/ch/src/Common/Exception.cpp:37: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x279543 in /home/akuzm/ch4/build-clang10/src/libclickhouse_common_iod.so
4. /home/akuzm/ch4/ch/src/Compression/CompressedReadBufferBase.cpp:113: DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&) @ 0x14684d in /home/akuzm/ch4/build-clang10/src/libclickhouse_compressiond.so
5. /home/akuzm/ch4/ch/src/Compression/CompressedReadBuffer.cpp:0: DB::CompressedReadBuffer::nextImpl() @ 0x14601e in /home/akuzm/ch4/build-clang10/src/libclickhouse_compressiond.so
6. /home/akuzm/ch4/ch/src/IO/ReadBuffer.h:53: DB::ReadBuffer::next() @ 0x18b33b in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
7. /home/akuzm/ch4/ch/src/IO/ReadBuffer.h:81: DB::NativeBlockInputStream::readImpl() @ 0x2d0bd9 in /home/akuzm/ch4/build-clang10/src/libclickhouse_datastreamsd.so
8. /home/akuzm/ch4/ch/src/DataStreams/IBlockInputStream.cpp:60: DB::IBlockInputStream::read() @ 0x29d86d in /home/akuzm/ch4/build-clang10/src/libclickhouse_datastreamsd.so
9. /home/akuzm/ch4/ch/src/Client/Connection.cpp:755: DB::Connection::receiveDataImpl(std::__1::shared_ptr<DB::IBlockInputStream>&) @ 0x146cca in /home/akuzm/ch4/build-clang10/src/libclickhouse_clientd.so
10. /home/akuzm/ch4/ch/src/Client/Connection.cpp:736: DB::Connection::receiveData() @ 0x1468e8 in /home/akuzm/ch4/build-clang10/src/libclickhouse_clientd.so
11. /home/akuzm/ch4/ch/src/Client/Connection.cpp:688: DB::Connection::receivePacket() @ 0x1463d8 in /home/akuzm/ch4/build-clang10/src/libclickhouse_clientd.so
12. /home/akuzm/ch4/ch/programs/client/Client.cpp:1585: DB::Client::receiveAndProcessPacket(bool) @ 0x1b52f3 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
13. /home/akuzm/ch4/ch/programs/client/Client.cpp:1569: DB::Client::receiveResult() @ 0x1b893a in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
14. /home/akuzm/ch4/ch/programs/client/Client.cpp:1311: DB::Client::processOrdinaryQuery() @ 0x1a1151 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
15. /home/akuzm/ch4/ch/programs/client/Client.cpp:1218: DB::Client::processParsedSingleQuery() @ 0x1a0022 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
16. /home/akuzm/ch4/ch/programs/client/Client.cpp:1159: DB::Client::processTextAsSingleQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x19d898 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
17. /home/akuzm/ch4/ch/programs/client/Client.cpp:899: DB::Client::processQueryText(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x1845c0 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
18. /home/akuzm/ch4/ch/programs/client/Client.cpp:630: DB::Client::mainImpl() @ 0x1811c7 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
19. /home/akuzm/ch4/ch/programs/client/Client.cpp:252: DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) @ 0x175106 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
20. /home/akuzm/ch4/ch/contrib/poco/Util/src/Application.cpp:334: Poco::Util::Application::run() @ 0x8ca4f in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Util/lib_poco_utild.so
21. /home/akuzm/ch4/ch/programs/client/Client.cpp:2348: mainEntryClickHouseClient(int, char**) @ 0x16d107 in /home/akuzm/ch4/build-clang10/programs/client/libclickhouse-client-libd.so
22. main @ 0x2c21f2 in ?
23. /build/glibc-YYA7BZ/glibc-2.31/csu/../csu/libc-start.c:342: __libc_start_main @ 0x270b3 in /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so
24. _start @ 0x2c202e in ?
```

The message about data compression is an error by itself, I expect to receive the stack trace from the server.

In the server log:
```
2020.07.13 16:09:39.358425 [ 47508 ] {1c392ed6-3953-4846-81f5-273ca6e3814a} <Error> : Logical error: 'Bad cast from type DB::ColumnNothing to DB::ColumnVector<char8_t>'.
clickhouse-server: /home/akuzm/ch4/ch/src/Common/Exception.cpp:45: DB::Exception::Exception(const std::string &, int): Assertion `false' failed.
2020.07.13 16:09:39.358833 [ 47457 ] {} <Trace> BaseDaemon: Received signal 6
2020.07.13 16:09:39.359144 [ 47525 ] {} <Fatal> BaseDaemon: ########################################
2020.07.13 16:09:39.359801 [ 47525 ] {} <Fatal> BaseDaemon: (version 20.6.1.1, build id: F176DE2A5C050ABF) (from thread 47508) (query_id: 1c392ed6-3953-4846-81f5-273ca6e3814a) Received signal Aborted (6)
2020.07.13 16:09:39.359917 [ 47525 ] {} <Fatal> BaseDaemon: 
2020.07.13 16:09:39.360046 [ 47525 ] {} <Fatal> BaseDaemon: Stack trace: 0x7f8be3db818b 0x7f8be3d97859 0x7f8be3d97729 0x7f8be3da8f36 0x7f8be7cbc8ab 0x7f8bdf0f07cb 0x7f8bd832f5e5 0x7f8be2a887a4 0x7f8bd8325bbb 0x7f8bd86a9194 0x7f8bd86a95d8 0x7f8bd40af029 0x7f8bd40addbf 0x7f8bd40aaeed 0x7f8bd40b1b52 0x7f8be4f7dd7c 0x7f8be4f7e58a 0x7f8be4a8f173 0x7f8be4a8c03d 0x7f8be4a8aeba 0x7f8be3bfe609 0x7f8be3e94103
2020.07.13 16:09:39.360405 [ 47525 ] {} <Fatal> BaseDaemon: 4. /build/glibc-YYA7BZ/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51: __GI_raise @ 0x4618b in /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so
2020.07.13 16:09:39.360586 [ 47525 ] {} <Fatal> BaseDaemon: 5. /build/glibc-YYA7BZ/glibc-2.31/stdlib/abort.c:81: abort @ 0x25859 in /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so
2020.07.13 16:09:39.360829 [ 47525 ] {} <Fatal> BaseDaemon: 6. /build/glibc-YYA7BZ/glibc-2.31/intl/loadmsgcat.c:509: _nl_load_domain.cold @ 0x25729 in /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so
2020.07.13 16:09:39.361138 [ 47525 ] {} <Fatal> BaseDaemon: 7. ? @ 0x36f36 in /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so
2020.07.13 16:09:39.361474 [ 47525 ] {} <Fatal> BaseDaemon: 8. /home/akuzm/ch4/ch/src/Common/Exception.cpp:48: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x2798ab in /home/akuzm/ch4/build-clang10/src/libclickhouse_common_iod.so
2020.07.13 16:09:39.369748 [ 47525 ] {} <Fatal> BaseDaemon: 9. /home/akuzm/ch4/ch/src/Common/typeid_cast.h:40: std::__1::enable_if<std::is_reference_v<DB::ColumnVector<char8_t> const&>, DB::ColumnVector<char8_t> const&>::type typeid_cast<DB::ColumnVector<char8_t> const&, DB::IColumn const>(DB::IColumn const&) @ 0x3d797cb in /home/akuzm/ch4/build-clang10/src/Functions/libclickhouse_functionsd.so
2020.07.13 16:09:39.370442 [ 47525 ] {} <Fatal> BaseDaemon: 10. /home/akuzm/ch4/ch/src/DataTypes/DataTypeNumberBase.cpp:186: DB::DataTypeNumberBase<char8_t>::serializeBinaryBulk(DB::IColumn const&, DB::WriteBuffer&, unsigned long, unsigned long) const @ 0x4445e5 in /home/akuzm/ch4/build-clang10/src/libclickhouse_datatypesd.so
2020.07.13 16:09:39.371049 [ 47525 ] {} <Fatal> BaseDaemon: 11. /home/akuzm/ch4/ch/src/DataTypes/IDataType.h:184: DB::IDataType::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::IDataType::SerializeBinaryBulkSettings&, std::__1::shared_ptr<DB::IDataType::SerializeBinaryBulkState>&) const @ 0x24aa7a4 in /home/akuzm/ch4/build-clang10/src/AggregateFunctions/libclickhouse_aggregate_functionsd.so
2020.07.13 16:09:39.371651 [ 47525 ] {} <Fatal> BaseDaemon: 12. /home/akuzm/ch4/ch/src/DataTypes/DataTypeNullable.cpp:102: DB::DataTypeNullable::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::IDataType::SerializeBinaryBulkSettings&, std::__1::shared_ptr<DB::IDataType::SerializeBinaryBulkState>&) const @ 0x43abbb in /home/akuzm/ch4/build-clang10/src/libclickhouse_datatypesd.so
2020.07.13 16:09:39.372305 [ 47525 ] {} <Fatal> BaseDaemon: 13. /home/akuzm/ch4/ch/src/DataStreams/NativeBlockOutputStream.cpp:58: DB::NativeBlockOutputStream::writeData(DB::IDataType const&, COW<DB::IColumn>::immutable_ptr<DB::IColumn> const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x2d9194 in /home/akuzm/ch4/build-clang10/src/libclickhouse_datastreamsd.so
2020.07.13 16:09:39.372908 [ 47525 ] {} <Fatal> BaseDaemon: 14. /home/akuzm/ch4/ch/src/DataStreams/NativeBlockOutputStream.cpp:124: DB::NativeBlockOutputStream::write(DB::Block const&) @ 0x2d95d8 in /home/akuzm/ch4/build-clang10/src/libclickhouse_datastreamsd.so
2020.07.13 16:09:39.373641 [ 47525 ] {} <Fatal> BaseDaemon: 15. /home/akuzm/ch4/ch/src/Server/TCPHandler.cpp:1106: DB::TCPHandler::sendData(DB::Block const&) @ 0x348029 in /home/akuzm/ch4/build-clang10/src/libclickhouse_serverd.so
2020.07.13 16:09:39.374240 [ 47525 ] {} <Fatal> BaseDaemon: 16. /home/akuzm/ch4/ch/src/Server/TCPHandler.cpp:597: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x346dbf in /home/akuzm/ch4/build-clang10/src/libclickhouse_serverd.so
2020.07.13 16:09:39.374769 [ 47525 ] {} <Fatal> BaseDaemon: 17. /home/akuzm/ch4/ch/src/Server/TCPHandler.cpp:272: DB::TCPHandler::runImpl() @ 0x343eed in /home/akuzm/ch4/build-clang10/src/libclickhouse_serverd.so
2020.07.13 16:09:39.375391 [ 47525 ] {} <Fatal> BaseDaemon: 18. /home/akuzm/ch4/ch/src/Server/TCPHandler.cpp:1201: DB::TCPHandler::run() @ 0x34ab52 in /home/akuzm/ch4/build-clang10/src/libclickhouse_serverd.so
2020.07.13 16:09:39.375853 [ 47525 ] {} <Fatal> BaseDaemon: 19. /home/akuzm/ch4/ch/contrib/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x1b9d7c in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Net/lib_poco_netd.so
2020.07.13 16:09:39.376416 [ 47525 ] {} <Fatal> BaseDaemon: 20. /home/akuzm/ch4/ch/contrib/poco/Net/src/TCPServerDispatcher.cpp:114: Poco::Net::TCPServerDispatcher::run() @ 0x1ba58a in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Net/lib_poco_netd.so
2020.07.13 16:09:39.377223 [ 47525 ] {} <Fatal> BaseDaemon: 21. /home/akuzm/ch4/ch/contrib/poco/Foundation/src/ThreadPool.cpp:199: Poco::PooledThread::run() @ 0x276173 in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Foundation/lib_poco_foundationd.so
2020.07.13 16:09:39.378055 [ 47525 ] {} <Fatal> BaseDaemon: 22. /home/akuzm/ch4/ch/contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x27303d in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Foundation/lib_poco_foundationd.so
2020.07.13 16:09:39.378751 [ 47525 ] {} <Fatal> BaseDaemon: 23. /home/akuzm/ch4/ch/contrib/poco/Foundation/src/Thread_POSIX.cpp:345: Poco::ThreadImpl::runnableEntry(void*) @ 0x271eba in /home/akuzm/ch4/build-clang10/contrib/poco-cmake/Foundation/lib_poco_foundationd.so
2020.07.13 16:09:39.378956 [ 47525 ] {} <Fatal> BaseDaemon: 24. start_thread @ 0x9609 in /lib/x86_64-linux-gnu/libpthread-2.31.so
2020.07.13 16:09:39.379325 [ 47525 ] {} <Fatal> BaseDaemon: 25. /build/glibc-YYA7BZ/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:97: __clone @ 0x122103 in /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so
```
{
        auto isBigInteger = &typeIsEither<DataTypeInt64, DataTypeUInt64, DataTypeUUID>;
        auto isFloatingPoint = &typeIsEither<DataTypeFloat32, DataTypeFloat64>;
        if ((isBigInteger(*types[0]) && isFloatingPoint(*types[1]))
            || (isBigInteger(*types[1]) && isFloatingPoint(*types[0]))
            || (WhichDataType(types[0]).isDate() && WhichDataType(types[1]).isDateTime())
            || (WhichDataType(types[1]).isDate() && WhichDataType(types[0]).isDateTime()))
            return false; 
        return isCompilableType(types[0]) && isCompilableType(types[1]);
    }
    llvm::Value * compileImpl(llvm::IRBuilderBase & builder, const DataTypes & types, ValuePlaceholders values) const override