Use const_null instead of nested stuff
@@ -23,7 +23,6 @@ use clickhouse_rs::{
types::{DateTimeType, SqlType},
Block, ClientHandle, Pool,
};
-use simd_json::StaticNode;
#[derive(Default, Debug)]
pub(crate) struct Builder {}
@@ -215,7 +214,7 @@ impl ClickhouseSink {
for (column_name, expected_type) in columns.iter() {
// If the value is not present, then we can replace it by null.
- const NULL: Value = Value::Static(StaticNode::Null);
+ const NULL: Value = Value::const_null();
let cell = object.get(column_name.as_str()).unwrap_or(&NULL);
let cell = conversion::convert_value(column_name.as_str(), cell, expected_type)?;
