ClickHouse/ClickHouse

Support defaults in Native format

開放

#58,662 建立於 2024年1月10日

 (0 則留言) (14 個反應) (0 位負責人)C++ (8,400 個分叉)batch import
featurehelp wanted

倉庫指標

星標
 (47,419 顆星)
PR 合併指標
 (平均合併 2天 2小時) (30 天內合併 1,000 個 PR)

描述

Use case

Currently, we do not have a way to insert default values to ClickHouse when using native format. The way we currently overcome that issue is to describe the table first and insert the default value (not so elegant). Still, we encounter a more significant problem when the default is computed from the server side.

Describe the solution you'd like

Please create a new format, NativeWithDefaults, like the one we implemented in RowBinary (#50854).

Where it will help

Various integrations that ingest data can benefit from it, simplify current logic, and unblock inserting data when there is a default value.

貢獻者指南