mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-23 08:20:36 +00:00
feat: json2 insert (#7981)
* feat: json2 insert Signed-off-by: luofucong <luofc@foxmail.com> * resolve PR comments Signed-off-by: luofucong <luofc@foxmail.com> * use main greptime-proto Signed-off-by: luofucong <luofc@foxmail.com> --------- Signed-off-by: luofucong <luofc@foxmail.com>
This commit is contained in:
@@ -310,7 +310,7 @@ pub fn sql_data_type_to_concrete_data_type(
|
||||
JsonStructureSettings::UnstructuredRaw => Some(JsonNativeType::Variant),
|
||||
_ => None,
|
||||
})
|
||||
.unwrap_or(JsonNativeType::Null);
|
||||
.unwrap_or(JsonNativeType::Object(Default::default()));
|
||||
let format = JsonFormat::Json2(Box::new(native_type));
|
||||
Ok(ConcreteDataType::Json(JsonType::new(format)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user