Skip to content

Conversation

@TerboucheHacene
Copy link
Contributor

Issue Resolved: Issue with Defining Index of Type QdrantDocumentIndex for Documents with Non-Class Type Fields

Description:
This pull request addresses the issue where defining an index of type QdrantDocumentIndex for documents containing fields with non-class types resulted in a TypeError. The issue has been resolved by replacing the usage of issubclass with safe_issubclass

Signed-off-by: TERBOUCHE Hacene <hacene.terbouche@gmail.com>
@JoanFM JoanFM linked an issue Aug 13, 2023 that may be closed by this pull request
6 tasks
@codecov
Copy link

codecov bot commented Aug 13, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -4.87% ⚠️

Comparison is base (adb0d01) 84.31% compared to head (21fbb21) 79.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1752      +/-   ##
==========================================
- Coverage   84.31%   79.45%   -4.87%     
==========================================
  Files         134      134              
  Lines        8842     8842              
==========================================
- Hits         7455     7025     -430     
- Misses       1387     1817     +430     
Flag Coverage Δ
docarray 79.45% <100.00%> (-4.87%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
docarray/index/backends/qdrant.py 78.20% <100.00%> (ø)

... and 32 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

The failing tests are not due to this PR

@JoanFM JoanFM merged commit 6c77112 into docarray:main Aug 13, 2023
@JoanFM
Copy link
Member

JoanFM commented Aug 13, 2023

Thanks a lot for the contribution!

@alaeddine-13 alaeddine-13 changed the title fix(qdrant): fix non-class type fields #1748 fix(qdrant): fix non-class type fields Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash when using non-class type field in Document with QdrantDocumentIndex

2 participants