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
Describe the bug
In case of multiple columns, if we open only few of such columns in context manager and still tries to write on other columns inside the context manager, transactions get False. A sample script to reproduce is given below
Severity
Select an option:
Data Corruption / Loss of Any Kind
Unexpected Behavior, Exceptions or Error Thrown
Performance Bottleneck
To Reproduce
fromhangarimportRepositoryimportnumpyasnprepo=Repository('.')
repo.init(user_name='me', user_email='[email protected]', remove_old=True)
co=repo.checkout(write=True)
co.add_ndarray_column('x', prototype=np.array([1]))
co.add_ndarray_column('y', prototype=np.array([1]))
co.commit('added columns')
co.close()
co=repo.checkout(write=True)
x=co.columns['x']
y=co.columns['y']
withx: # note that we are opening only `x` in the CMforiinrange(10):
y[i] =np.array([i]) # but we are trying to update `y` columnx[i] =np.array([i])
co.commit('adding file')
co.close()
Desktop (please complete the following information):
OS: Ubuntu 19.10
Python: 3.7
Hangar: 0.5.1.dev0 (master, at the time of writing)
The text was updated successfully, but these errors were encountered:
Describe the bug
In case of multiple columns, if we open only few of such columns in context manager and still tries to write on other columns inside the context manager, transactions get False. A sample script to reproduce is given below
Severity
Select an option:
To Reproduce
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: