refactor: optimize json2 write (#8393)

refactor: optimize json2 write performance

Signed-off-by: luofucong <luofc@foxmail.com>
This commit is contained in:
LFC
2026-07-09 15:08:57 +08:00
committed by GitHub
parent 59e4e7efda
commit 6ae687dc8e
12 changed files with 496 additions and 325 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ pub fn sql_data_type_to_concrete_data_type(data_type: &SqlDataType) -> Result<Co
JSON2_TYPE_NAME if args.is_empty() => {
// Currently, JSON2 is not inferred as any native type initially.
// TODO(fys): infer it later from type hints.
let format = JsonFormat::Json2(Box::new(JsonNativeType::Null));
let format = JsonFormat::Json2(Arc::new(JsonNativeType::Null));
Ok(ConcreteDataType::Json(JsonType::new(format)))
}
_ => error::SqlTypeNotSupportedSnafu {