Skip to content

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

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

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

Conversation

@JoanFM
Copy link
Copy Markdown
Member

@JoanFM JoanFM commented Sep 6, 2022

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
Copy link
Copy Markdown
Member Author

JoanFM commented Sep 6, 2022

Linked to jina-ai/annlite#160

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

codecov bot commented Sep 6, 2022

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.

@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
@JoanFM JoanFM force-pushed the columns-as-dict branch 2 times, most recently from 12fc506 to a9bd405 Compare September 8, 2022 09:55
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 8, 2022

📝 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