Collection schema get from go-sdk can`t get the dynamic field #32918
Answered
by
yhmo
Mutezebra
asked this question in
Q&A and General discussion
-
Beta Was this translation helpful? Give feedback.
Answered by
yhmo
May 10, 2024
Replies: 1 comment 1 reply
-
It is by design. All the SDKs follow this behavior. You can use the flag enable_dynamic_field of CollectionSchema to check whether there is a dynamic field inside the collection. For example, in python sdk:
The schema is printed like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Mutezebra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is by design. All the SDKs follow this behavior.
The dynamic field is not a standard field, controlled by the enable_dynamic_field of CollectionSchema, not listed in fields. Each collection has at most one dynamic field. The datatype of a dynamic field is JSON.
You can use the flag enable_dynamic_field of CollectionSchema to check whether there is a dynamic field inside the collection.
For example, in python sdk: