клиенте все хорошо, коммит, ошибок нет. На сервере в логах такая ошибка:
2020.05.14 15:01:56.279294 [ 9095 ] {0c523c9b-b7b7-42fd-a78d-aece170d6669} <Error> executeQuery: Code: 33, e.displayText() = DB::Exception: Cannot read all data in NativeBlockInputStream. Rows read: 0. Rows expected: 990. (version 20.4.2.9 (official build)) (from 109.252.83.134:3145) (in query: INSERT INTO test.d_exch (EventTime, ...) VALUES ), Stack trace (when copying this message, always include the lines below):
0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x10406ef0 in /usr/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x8ff88ad in /usr/bin/clickhouse
2. ? @ 0xce4a050 in /usr/bin/clickhouse
3. DB::NativeBlockInputStream::readImpl() @ 0xce47e1f in /usr/bin/clickhouse
4. DB::IBlockInputStream::read() @ 0xce37e0d in /usr/bin/clickhouse
5. DB::TCPHandler::receiveData(bool) @ 0x90fc7db in /usr/bin/clickhouse
6. DB::TCPHandler::receivePacket() @ 0x90fdd67 in /usr/bin/clickhouse
7. DB::TCPHandler::readDataNext(unsigned long const&, int const&) @ 0x90fdf45 in /usr/bin/clickhouse
8. DB::TCPHandler::processInsertQuery(DB::Settings const&) @ 0x90fe788 in /usr/bin/clickhouse
9. DB::TCPHandler::runImpl() @ 0x9100057 in /usr/bin/clickhouse
10. DB::TCPHandler::run() @ 0x9100650 in /usr/bin/clickhouse
11. Poco::Net::TCPServerConnection::start() @ 0x102f2c6b in /usr/bin/clickhouse
12. Poco::Net::TCPServerDispatcher::run() @ 0x102f30fb in /usr/bin/clickhouse
13. Poco::PooledThread::run() @ 0x104a0cc6 in /usr/bin/clickhouse
14. Poco::ThreadImpl::runnableEntry(void*) @ 0x1049bf80 in /usr/bin/clickhouse
15. start_thread @ 0x76db in /lib/x86_64-linux-gnu/libpthread-2.27.so
16. clone @ 0x12188f in /lib/x86_64-linux-gnu/libc-2.27.so
А вставляете через db.Exec(...)` или пачкой через tx.Prepare(..)?
сможете issue вместе с примером golang кода и схемой БД и версией сервера на github завести?
Обсуждают сегодня