Skip to content

feat: columns should be a dictionary not list of tuples#526

Merged
JoanFM merged 12 commits into
mainfrom
columns-as-dict
Sep 8, 2022
Merged

feat: columns should be a dictionary not list of tuples#526
JoanFM merged 12 commits into
mainfrom
columns-as-dict

Conversation

@JoanFM

@JoanFM JoanFM commented Sep 6, 2022

Copy link
Copy Markdown
Member

Goals:
Since List[Tuple] is not something that can be passed via YAML to a Flow, we need to make sure that this is doable, so having a Dict like structure for columns is the best way to go.

  • Change the code
  • Test both ways to initialize
  • Write documentation

@JoanFM

JoanFM commented Sep 6, 2022

Copy link
Copy Markdown
Member Author

Linked to jina-ai/annlite#160

@JoanFM JoanFM linked an issue Sep 6, 2022 that may be closed by this pull request
@codecov

codecov Bot commented Sep 6, 2022

Copy link
Copy Markdown

Codecov Report

Merging #526 (3a57cc1) into main (531bd83) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #526      +/-   ##
==========================================
- Coverage   86.26%   86.24%   -0.03%     
==========================================
  Files         142      142              
  Lines        7033     7036       +3     
==========================================
+ Hits         6067     6068       +1     
- Misses        966      968       +2     
Flag Coverage Δ
docarray 86.24% <100.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
docarray/array/storage/annlite/backend.py 96.00% <100.00%> (ø)
docarray/array/storage/base/backend.py 87.23% <100.00%> (+1.18%) ⬆️
docarray/array/storage/elastic/backend.py 95.58% <100.00%> (ø)
docarray/array/storage/elastic/getsetdel.py 100.00% <100.00%> (ø)
docarray/array/storage/qdrant/backend.py 96.03% <100.00%> (ø)
docarray/array/storage/qdrant/getsetdel.py 81.94% <100.00%> (ø)
docarray/array/storage/redis/backend.py 96.19% <100.00%> (ø)
docarray/array/storage/redis/getsetdel.py 96.77% <100.00%> (ø)
docarray/array/storage/sqlite/backend.py 93.67% <100.00%> (ø)
docarray/array/storage/weaviate/backend.py 89.04% <100.00%> (-0.08%) ⬇️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Comment thread docarray/array/storage/base/backend.py Outdated
Comment thread docarray/array/storage/base/backend.py
Comment thread docarray/array/storage/weaviate/backend.py Outdated
Comment thread docarray/array/storage/weaviate/backend.py Outdated
Comment thread docarray/array/storage/weaviate/backend.py Outdated
Joan Fontanals and others added 2 commits September 6, 2022 10:21
Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
@JoanFM JoanFM marked this pull request as ready for review September 6, 2022 08:21
@JoanFM JoanFM force-pushed the columns-as-dict branch 3 times, most recently from 455db8e to bb832ef Compare September 6, 2022 10:24
numb3r3
numb3r3 previously requested changes Sep 8, 2022
Comment thread docarray/array/storage/annlite/backend.py
@JoanFM JoanFM force-pushed the columns-as-dict branch 2 times, most recently from 12fc506 to a9bd405 Compare September 8, 2022 09:55
Comment thread tests/unit/array/mixins/test_find.py Outdated
Comment thread tests/unit/array/mixins/test_find.py
Comment thread tests/unit/array/storage/elastic/test_del.py Outdated
@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

📝 Docs are deployed on https://ft-columns-as-dict--jina-docs.netlify.app 🎉

@JoanFM JoanFM merged commit fff3ecc into main Sep 8, 2022
@JoanFM JoanFM deleted the columns-as-dict branch September 8, 2022 15:58
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.

modify column type to a json/yaml parsable type in storage backends #429

4 participants