Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.apache.commons.lang3.StringUtils;

import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import io.milvus.grpc.DataType;
Expand Down Expand Up @@ -69,7 +70,12 @@ public Object convertBySeaTunnelType(
case STRING:
case DATE:
if (isJson) {
return gson.fromJson(value.toString(), JsonObject.class);
JsonElement element = gson.fromJson(value.toString(), JsonElement.class);
if (element.isJsonObject()) {
return element.getAsJsonObject();
} else {
return element.toString();
}
}
return value.toString();
case FLOAT_VECTOR:
Expand Down