-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
What happens?
The code snippet in the "reproduce" section fails on internal assertion failure:
duckdb.duckdb.InternalException: INTERNAL Error: TransactionContext::ActiveTransaction called without active transaction
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
For more information, see https://duckdb.org/docs/stable/dev/internal_errors
To Reproduce
import duckdb;
# Documentation : https://duckdb.org/docs/stable/clients/python/overview
conn = duckdb.connect()
def try_relation_api(rel):
print(rel.columns)
print(rel.dtypes)
print(rel.description)
print(rel.shape)
print(rel.type)
print(rel.types)
print(rel.describe())
def try_struct_api():
my_struct_dict = {
1: "one",
"2": 2,
"three": [1, 2, 3],
False: True
}
rel = duckdb.values(my_struct_dict, connection=conn)
try_relation_api(rel)
try_struct_api()
OS:
linux x86_64
DuckDB Version:
1.3.2
DuckDB Client:
python 3.11
Hardware:
No response
Full Name:
Jacob
Affiliation:
n/a
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
- Yes, I have
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
- Yes, I have