mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
fix: disable build old version jsonstats from request (#45101)
#44132 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
parent
569a5b40d2
commit
a38610cd5d
@ -337,6 +337,13 @@ func (st *statsTask) Execute(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// for compatibility, we only support json data format version 2 and above after 2.6
|
||||
// for old version, we skip creating json key index
|
||||
if st.req.GetJsonKeyStatsDataFormat() < 2 {
|
||||
log.Ctx(ctx).Info("json data format version is too old, skip creating json key index", zap.Int64("data format", st.req.GetJsonKeyStatsDataFormat()))
|
||||
return nil
|
||||
}
|
||||
|
||||
err = st.createJSONKeyStats(ctx,
|
||||
st.req.GetStorageConfig(),
|
||||
st.req.GetCollectionID(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user