clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Receiving columns metadata

Open den818 opened this issue 2 years ago • 0 comments

Columns metadata is sent if only it is a query like "INSERT INTO {TableName} VALUES" when values are sent as separate data. Such queries can be dispatched only by these functions:

    /// Intends for insert block of data into a table \p table_name.
    void Insert(const std::string& table_name, const Block& block);
    void Insert(const std::string& table_name, const std::string& query_id, const Block& block);

The parameter block has already formed in these functions at the time of the call. Analyzing columns' defaults for changing data seems useless. That's why I just skiped this data.

den818 avatar Oct 09 '22 12:10 den818