You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2575e2a
Browse filesBrowse the repository at this point in the historyBrowse files
feat: Store arrays and Json natively for every new collection
ARRAY and JSON columns are independent of enable_openai_compatible_store.
Every new collection gets them. A collection that an older Feast version
created keeps its VARCHAR columns, and the column types of each collection
decide how a row is written and read.
Signed-off-by: jiwidi <fhjaime96@gmail.com>
Copy file name to clipboardExpand all lines: docs/reference/online-stores/milvus.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ online_store:
101
101
| `partition_key_isolation` | unset | Enables partition key isolation on a new collection that has a partition key. When unset, Milvus uses its default. |
| `varchar_max_length` | `65535` | Default `max_length` of VARCHAR fields. Override per field with the `max_length` tag. |
104
-
| `enable_openai_compatible_store` | `false` | Store numeric, array, `Json`, `Map` and `Struct` features as native Milvus types. See [Field types](#field-types). |
104
+
| `enable_openai_compatible_store` | `false` | Store numericfeatures as native Milvus numeric types. |
105
105
106
106
The full set of configuration options is available in [MilvusOnlineStoreConfig](https://rtd.feast.dev/en/latest/#feast.infra.online_stores.milvus.MilvusOnlineStoreConfig).
107
107
@@ -237,8 +237,8 @@ type.
237
237
| `UnixTimestamp` | `VARCHAR` holding the seconds as text | `INT64` |
| `Array` with `vector_index=True` | `FLOAT_VECTOR` with the field's `vector_length`, or `embedding_dim` when it is unset | the same |
240
-
| `Array` of `String`, `Bool`, `Int32`, `Int64`, `Float32`, `Float64` or `UnixTimestamp` without `vector_index` | `VARCHAR` holding the serialized value | `ARRAY` of the element type, with at most `milvus.max_capacity` elements. The default and the maximum are 4096 |
241
-
| `Json` and `Array(Json)` | `VARCHAR` holding the serialized value | `JSON` |
240
+
| `Array` of `String`, `Bool`, `Int32`, `Int64`, `Float32`, `Float64` or `UnixTimestamp` without `vector_index` | `ARRAY` of the element type, with at most `milvus.max_capacity` elements. The default and the maximum are 4096 | the same |
241
+
| `Json` and `Array(Json)` | `JSON` | the same |
242
242
| Every other type, including `Map` and `Struct` | `VARCHAR` holding the serialized value | the same |
243
243
244
244
Filters apply to `VARCHAR` and native columns. A column that holds a serialized value can be read
@@ -256,9 +256,10 @@ value comes back as the JSON text of the stored document, so its formatting is n
256
256
typed lists. `JSON` and `ARRAY` columns are nullable unless the field has `milvus.nullable: "false"`.
257
257
258
258
{% hint style="warning" %}
259
-
`enable_openai_compatible_store` only applies when Feast creates a collection. Feast detects the
260
-
column types of an existing collection, so reads and writes keep working whichever way it was
261
-
created. `feast teardown` drops the collections of every feature view in the project, online reads
259
+
Column types only apply when Feast creates a collection. A collection that an older Feast version
260
+
created keeps its `VARCHAR` columns, and Feast detects the column types of each collection, so
261
+
reads and writes keep working whichever way it was created. To get the new columns for an existing
262
+
feature view, recreate its collection: `feast teardown`drops the collections of every feature view in the project, online reads
262
263
fail until materialization finishes, and rows that exist only in the online store are lost. To
263
264
migrate without a teardown, add a copy of the feature view under a new name, materialize it, move
264
265
readers to it, then remove the old view.
@@ -299,7 +300,7 @@ Field(
299
300
`STL_SORT`, `Trie` or `AUTOINDEX`, and `milvus.index_params` passes a JSON object of parameters.
300
301
`milvus.json_indexes`is a JSON list of index definitions for paths of a `JSON` column, each with a
301
302
`json_path`, a `json_cast_type` and an optional `index_type` that defaults to `INVERTED`. It needs
302
-
native types and a Milvus server with JSON path indexes. Vector indexes come from `index_type` and
303
+
a Milvus server with JSON path indexes. Vector indexes come from `index_type` and
303
304
`index_params`in the store config.
304
305
305
306
Indexes only apply when Feast creates a collection. For an existing collection without them, Feast
0 commit comments