Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: dict method for document view - #1559

#1559
Merged
JohannesMessner merged 5 commits into
maindocarray/docarray:mainfrom
fix-todict-docviewdocarray/docarray:fix-todict-docviewCopy head branch name to clipboard
May 22, 2023
Merged

fix: dict method for document view#1559
JohannesMessner merged 5 commits into
maindocarray/docarray:mainfrom
fix-todict-docviewdocarray/docarray:fix-todict-docviewCopy head branch name to clipboard

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 join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.