You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is multiple arrays in the same SqliteStore groups, if there exists 2 arrays named as follow: 'prefix', 'prefix_suffix.'
If there is a operation that overwrite on the array 'prefix', the array 'prefix_suffix' is removed too.
Minimal, reproducible code sample, a copy-pastable example if possible
importzarrimportnumpyasnppath='D:/test.db'store=zarr.SQLiteStore(path)
group=zarr.open_group(store)
group.array('prefix', np.arange(1000))
group.array('prefix_suffix', np.arange(100))
group['prefix_suffix']
Traceback (mostrecentcalllast):
PythonShell, prompt3, line1# Used internally for debug sandbox under external interpreterFile"d:\Program\Anaconda3\envs\dev\Lib\site-packages\zarr\hierarchy.py", line333, in__getitem__raiseKeyError(item)
builtins.KeyError: 'prefix_suffix'
Problem description
The prefix_suffix array should not be touched. This work well in directory store
Version and installation information
Please provide the following:
Value of 2.3.1
Value of 0.6.3
Version of Python interpreter : 3.7.2
Operating system Windows
How Zarr was installed "using conda"
Solution
By changing a few lines of SQL queries in SQLiteStore Class, I was able to circumvent the problem. But as I am completely new to GitHub, I did not know where to post the solution for testing.
Activity
[-]Sqlite store delete wrong columns[/-][+]Sqlite store delete wrong array[/+]jakirkham commentedon May 14, 2019
Ouch! Sorry for the trouble @potter420. If you already have a fix, would be happy to review a PR. If not, happy to take a closer look at this issue.
Fix Sqlite Store Wrong Modification
potter420 commentedon May 15, 2019
@jakirkham Thank you, I submitted a PR for this issue for review.
#440
Added tests
Fix Sqlite Store Wrong Modification (#440)
jakirkham commentedon Jan 9, 2020
Fixed by PR ( #440 ).
feat(zarr-metadata): draw whole v3 documents (#4602)
feat(zarr-metadata): draw whole v3 documents (zarr-developers#4602)
feat(zarr-metadata): draw whole v3 documents (zarr-developers#4602)