Giter VIP home page Giter VIP logo

Comments (1)

nickitat avatar nickitat commented on June 20, 2024

another interesting behaviour is this:

❯ gd | cat
diff --git a/src/Server/TCPHandler.cpp b/src/Server/TCPHandler.cpp
index ae2f150c4a1..dfc18bd90bb 100644
--- a/src/Server/TCPHandler.cpp
+++ b/src/Server/TCPHandler.cpp
@@ -923,6 +923,8 @@ void TCPHandler::processInsertQuery()
         while (readDataNext())
             executor.push(std::move(state.block_for_insert));

+        std::this_thread::sleep_for(std::chrono::seconds(1));
+
         if (state.cancellation_status == CancellationStatus::FULLY_CANCELLED)
             executor.cancel();
         else

produces no error, while without any sleep we will obviously get an error:

❯ clickhouse client --queries-file repro.sql
Received exception from server (version 24.5.1):
Code: 6. DB::Exception: Received from localhost:9000. DB::Exception: Cannot parse string 'test' as Decimal(38, 7): syntax error at begin of string: while converting source column str to destination column str: while executing 'FUNCTION _CAST(str :: 0, Decimal(38, 7) :: 1) -> _CAST(str, Decimal(38, 7)) Decimal(38, 7) : 2': while pushing to view default.mv_table_1 (318bed11-79cd-4168-b3ac-b8341f8fd678). (CANNOT_PARSE_TEXT)
(query: INSERT INTO null_table VALUES ('test');)

so, we effectively loosing data: https://pastila.nl/?008ee639/0bb65a2827875c58b98c62a4cf731a59#C/nUnY22Jtcrb4U9dUv/tA==

from clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.