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
feat!: define default index name and return IndexMetadata after building index (#5645)
BREAKING CHANGE: `create_index` now returns `IndexMetadata` of the new
index in Rust and Java. Previously it returned nothing. (Python is
unchanged, as it returns the Dataset itself, and changing that would be
too disruptive.)
Defines the behavior of default index names, particularly for ones with
mixed case, non-alphanumeric, and nested fields. I tried to align it
with how it was being done before as much as possible. For example,
fields with dashes like `my-column` would get `my-column_idx`. This
helps libraries that were relying on a predicable algorithm.
However, I did notice we don't handle name collisions. So I added
behavior for that. If there's already an existing index with that name,
the default name gets a `_2` added.
Finally, because we are choosing the name in the function, I made it so
we return the `IndexMetadata` when you create the index in case you want
to get back the name that was chosen.
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments