Skip to content

Commit

Permalink
fix jsonindex parse string to int
Browse files Browse the repository at this point in the history
Signed-off-by: Xianhui.Lin <[email protected]>

fix unitest

Signed-off-by: Xianhui.Lin <[email protected]>

improve

Signed-off-by: Xianhui.Lin <[email protected]>

fix

Signed-off-by: Xianhui.Lin <[email protected]>

fix

Signed-off-by: Xianhui.Lin <[email protected]>
  • Loading branch information
JsDove committed Jan 9, 2025
1 parent 0a18c04 commit d4c04ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions internal/core/src/common/Json.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,6 @@ class Json {
template <typename T>
value_result<T>
at(uint16_t offset, uint16_t length) const {
if constexpr (std::is_same_v<T, std::string_view> ||
std::is_same_v<T, std::string>) {
return value_result<T>(T(data_.data() + offset, length));
}
return doc(offset, length).get<T>();
}

Expand Down
3 changes: 2 additions & 1 deletion internal/indexnode/task_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ func (st *statsTask) Execute(ctx context.Context) error {
log.Ctx(ctx).Warn("stats wrong, failed to create text index", zap.Error(err))
return err
}
} else if st.req.GetSubJobType() == indexpb.StatsSubJob_JsonKeyIndexJob {
}
if st.req.GetSubJobType() == indexpb.StatsSubJob_Sort || st.req.GetSubJobType() == indexpb.StatsSubJob_JsonKeyIndexJob {
err = st.createJSONKeyIndex(ctx,
st.req.GetStorageConfig(),
st.req.GetCollectionID(),
Expand Down

0 comments on commit d4c04ab

Please sign in to comment.