mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-25 17:30:41 +00:00
fix: implement bulk write for time partitions and bulk memtable (#7293)
* feat: implement convert_bulk_part Signed-off-by: evenyag <realevenyag@gmail.com> * chore: convert bulk part in TimePartitions Signed-off-by: evenyag <realevenyag@gmail.com> * feat: fill missing columns for bulk parts Signed-off-by: evenyag <realevenyag@gmail.com> * chore: update comments Signed-off-by: evenyag <realevenyag@gmail.com> * feat: cast to dictionary type Signed-off-by: evenyag <realevenyag@gmail.com> * test: add unit tests Signed-off-by: evenyag <realevenyag@gmail.com> * chore: update comment Signed-off-by: evenyag <realevenyag@gmail.com> * fix: do not convert part if bulk is written by write() Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
@@ -66,6 +66,7 @@ impl Inserter {
|
||||
return Ok(0);
|
||||
}
|
||||
|
||||
// TODO(yingwen): Fill record batch impure default values.
|
||||
// notify flownode to update dirty timestamps if flow is configured.
|
||||
self.maybe_update_flow_dirty_window(table_info.clone(), record_batch.clone());
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ pub fn find_all_impure_columns(table_info: &TableInfo) -> Vec<ColumnSchema> {
|
||||
.collect()
|
||||
}
|
||||
|
||||
// TODO(yingwen): Support Bulk insert request.
|
||||
/// Fill impure default values in the request
|
||||
pub struct ImpureDefaultFiller {
|
||||
impure_columns: HashMap<String, (api::v1::ColumnSchema, api::v1::Value)>,
|
||||
|
||||
Reference in New Issue
Block a user