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
What happened:
write_deltalake() return and program exit but the thread does not finish yet.
It will have segfault "terminate called without an active exception" or no result found right after write_deltalake()
What you expected to happen:
write_deltalake() shall wait for all threads done before return.
How to reproduce it:
from deltalake import DeltaTable, write_deltalake
from deltalake.exceptions import DeltaError, DeltaProtocolError, TableNotFoundError, CommitFailedError
import pyarrow as pa
import sys
Environment
Delta-rs version: 0.15.1
Binding: python
Environment:
Bug
What happened:
write_deltalake() return and program exit but the thread does not finish yet.
It will have segfault "terminate called without an active exception" or no result found right after write_deltalake()
What you expected to happen:
write_deltalake() shall wait for all threads done before return.
How to reproduce it:
from deltalake import DeltaTable, write_deltalake
from deltalake.exceptions import DeltaError, DeltaProtocolError, TableNotFoundError, CommitFailedError
import pyarrow as pa
import sys
if name == "main":
More details:
multiple call of the db_bug.py will have segfault. Just like below:
$ python3 db_bug.py
id vector
0 1 [1.0, 3.0, 4.0, 2.0]
1 2 [1.0, 3.0, 4.0, 5.0]
2 3 [3.0, 5.0, 6.0, 7.0]
3 4 [4.0, 5.0, 68.0, 6.0]
4 1 [1.0, 3.0, 4.0, 2.0]
5 2 [1.0, 3.0, 4.0, 5.0]
6 3 [3.0, 5.0, 6.0, 7.0]
7 4 [4.0, 5.0, 68.0, 6.0]
$ python3 db_bug.py
id vector
0 1 [1.0, 3.0, 4.0, 2.0]
1 2 [1.0, 3.0, 4.0, 5.0]
2 3 [3.0, 5.0, 6.0, 7.0]
3 4 [4.0, 5.0, 68.0, 6.0]
4 1 [1.0, 3.0, 4.0, 2.0]
5 2 [1.0, 3.0, 4.0, 5.0]
6 3 [3.0, 5.0, 6.0, 7.0]
7 4 [4.0, 5.0, 68.0, 6.0]
8 1 [1.0, 3.0, 4.0, 2.0]
9 2 [1.0, 3.0, 4.0, 5.0]
10 3 [3.0, 5.0, 6.0, 7.0]
11 4 [4.0, 5.0, 68.0, 6.0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68.0, 6.0]
terminate called without an active exception
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: