Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After truncation, VLStringAtom vlarray write error occurred. #1102

Open
One-sixth opened this issue Jan 21, 2024 · 0 comments
Open

After truncation, VLStringAtom vlarray write error occurred. #1102

One-sixth opened this issue Jan 21, 2024 · 0 comments

Comments

@One-sixth
Copy link

The version I tested is v3.9.2 .

import tables as T

db = T.open_file('t1.h5', mode='a')

if 'sad' in db.root:
    db.remove_node('/', 'sad')

arr = db.create_vlarray('/', 'sad', T.VLStringAtom(), chunkshape=[4,])

arr.append('sad')
arr.append('asdsad')
arr.append('asdsadasdsad')

print(arr[:])
arr.truncate(0)

arr.append('sad')
arr.append('asdsad')
arr.append('asdsadasdsad')
print(arr[:])
# bad out

The cmd out

[b'sad', b'asdsad', b'asdsadasdsad']
[b'', b'', b'']
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

No branches or pull requests

1 participant