Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

fix: dict method for document view - #1559

Merged
JohannesMessner merged 5 commits into
mainfrom
fix-todict-docview
May 22, 2023
Merged

JohannesMessner merged 5 commits into
mainfrom
fix-todict-docview

Conversation

@JohannesMessner

Copy link
Copy Markdown
Member

Before this, calling doc.dict() when doc.is_view() == True would return an empty dict.
The core issue is that the ColumnStorageView did not behave like a proper dict: .values() and .keys() were not implemented, and would return empty values.
That is fixed in this PR.

Signed-off-by: Johannes Messner <messnerjo@gmail.com>
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
Comment thread docarray/array/doc_vec/column_storage.py Outdated
Comment thread docarray/array/doc_vec/column_storage.py Outdated
Comment thread docarray/array/doc_vec/column_storage.py
Comment thread docarray/array/doc_vec/column_storage.py

@samsja samsja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Signed-off-by: Johannes Messner <messnerjo@gmail.com>
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
@github-actions

Copy link
Copy Markdown

📝 Docs are deployed on https://ft-fix-todict-docview--jina-docs.netlify.app 🎉

@JohannesMessner
JohannesMessner merged commit 4431757 into main May 22, 2023
@JohannesMessner
JohannesMessner deleted the fix-todict-docview branch May 22, 2023 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants