milvus/internal/metastore/model
smellthemoon b45798107a
enhance: add nullable in Field, check valid_data and fill data (#32086)
1. add nullable in model.Field
   help to read nullable accurately.
2. check valid_data
a. if user pass default_value or the field is nullable, the length of
valid_data must be num_rows.
b. if passed valid_data, the length of passed field data must equal to
the number of 'true' in valid_data.
c. after fill default_value, only nullable field will still has
valid_data.
3. fill data in two situation
    a. has no default_value, if nullable,
will fill nullValue when passed num_rows not equal to expected num_rows.
    b. has default_value,
will fill default_value when passed num_rows not equal to expected
num_rows.
c. after fill data, the length of all field will equal to passed
num_rows.
#31728

---------

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
2024-05-16 11:57:35 +08:00
..
alias_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
alias.go Use pointer receiver for large struct (#26668) 2023-08-30 10:24:29 +08:00
collection_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
collection.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
credential_test.go Unify metastore catalog interface (#17772) 2022-07-22 10:20:29 +08:00
credential.go Unify metastore catalog interface (#17772) 2022-07-22 10:20:29 +08:00
database_test.go enhance: Enable properites in database meta (#31394) 2024-03-19 19:21:06 +08:00
database.go enhance: Enable properites in database meta (#31394) 2024-03-19 19:21:06 +08:00
field_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
field.go enhance: add nullable in Field, check valid_data and fill data (#32086) 2024-05-16 11:57:35 +08:00
index_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
index.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
load_info.go Migrate metadata of QueryCoord from 2.1 to 2.2 (#19986) 2022-10-24 23:41:35 +08:00
partition_test.go Refactor RootCoord (#18930) 2022-09-05 13:29:11 +08:00
partition.go Use pointer receiver for large struct (#26668) 2023-08-30 10:24:29 +08:00
segment_index_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
segment_index.go feat: integrate storagev2 into index build process (#28995) 2023-12-13 17:24:38 +08:00
segment.go feat: add more operation detail info for better allocation (#30438) 2024-03-28 06:33:11 +08:00