Error while inserting - test: { Error: Cannot parse input: expected , before: 180.28.44.179,92.168.133.152,443,
www.saas30268.com,12,2,240,1,5,46474,36393,829,8333,51,89,87:22:71:62:32:46,TestPhoton,TestPhone,Kaushik,\n11,22,1,33,2019-10-21: (at row 9966)Could not print diagnostic info because two last rows aren't in buffer (rare case) (version 19.13.1.11 (official build))
at parseError (/home/vagrant/work/velocloud.src/vco/src/server/node/node_modules/@apla/clickhouse/src/parse-error.js:2:15)
at errorHandler (/home/vagrant/work/velocloud.src/vco/src/server/node/node_modules/@apla/clickhouse/src/clickhouse.js:29:13)
at IncomingMessage.<anonymous> (/home/vagrant/work/velocloud.src/vco/src/server/node/node_modules/@apla/clickhouse/src/clickhouse.js:97:11)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9) code: 27, scope: 'DB::Exception:' }
2019.10.23 20:35:36.780895 [ 164 ] {a72fbd57-52f3-4d40-9c51-4431c373fecc} <Error> HTTPHandler: Code: 27, e.displayText() = DB::Exception: Cannot parse input: expected , before: 180.28.44.179,92.168.133.152,443,
www.saas30268.com,12,2,240,1,5,46474,36393,829,8333,51,89,87:22:71:62:32:46,TestPhoton,TestPhone,Kaushik,\n11,22,1,33,2019-10-21: (at row 9966)
Could not print diagnostic info because two last rows aren't in buffer (rare case)
, Stack trace:
0. clickhouse-server(StackTrace::StackTrace()+0x30) [0x7f58f30]
1. clickhouse-server(DB::Exception::Exception(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)+0x25) [0x3c427b5]
2. clickhouse-server() [0x37b4139]
3. clickhouse-server(DB::CSVRowInputStream::read(std::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn> > >&, DB::RowReadExtension&)+0x5d6) [0x7580536]
4. clickhouse-server(DB::BlockInputStreamFromRowInputStream::readImpl()+0x170) [0x757d1c0]
5. clickhouse-server(DB::IBlockInputStream::read()+0x187) [0x6c04667]
6. clickhouse-server(DB::AddingDefaultsBlockInputStream::readImpl()+0x36) [0x6bfb4e6]
7. clickhouse-server(DB::IBlockInputStream::read()+0x187) [0x6c04667]
8. clickhouse-server(DB::InputStreamFromASTInsertQuery::readImpl()+0x28) [0x6e899f8]
9. clickhouse-server(DB::IBlockInputStream::read()+0x187) [0x6c04667]
10. clickhouse-server(DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::atomic<bool>*)+0x6b) [0x6c1c9db]
11. clickhouse-server(DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, DB::Context&, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>)+0x290) [0x6e889c0]
12. clickhouse-server(DB::HTTPHandler::processQuery(Poco::Net::HTTPServerRequest&, HTMLForm&, Poco::Net::HTTPServerResponse&, DB::HTTPHandler::Output&)+0x1a5e) [0x3c8fc3e]
13. clickhouse-server(DB::HTTPHandler::handleRequest(Poco::Net::HTTPServerRequest&, Poco::Net::HTTPServerResponse&)+0x45a) [0x3c91fba]
14. clickhouse-server(Poco::Net::HTTPServerConnection::run()+0x2a9) [0x7932009]
15. clickhouse-server(Poco::Net::TCPServerConnection::start()+0x10) [0x792cde0]
16. clickhouse-server(Poco::Net::TCPServerDispatcher::run()+0xed) [0x792d4fd]
17. clickhouse-server(Poco::PooledThread::run()+0x81) [0x8057e21]
18. clickhouse-server(Poco::ThreadImpl::runnableEntry(void*)+0x3c) [0x8055bcc]
19. clickhouse-server() [0xba2baa0]
20. /lib/x86_64-linux-gnu/libpthread.so.0(+0x8184) [0x7f3cdb5f6184]
21. /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f3cdae1903d]
(version 19.13.1.11 (official build))
We are inserting from a CSV file. I have attached a sample file for you to see. Also i have set input_format_values_interpret_expressions to 0 as per recommendation (Assuming i am seeing the same problem)