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

[ADBC] [Python] Adding extra tests and small fixes #8431

Merged
merged 10 commits into from
Aug 2, 2023

Conversation

pdet
Copy link
Contributor

@pdet pdet commented Jul 31, 2023

In this PR I add tests related to schema,db, connection info retrieval, and transactions (e.g., auto-commit).

I've also changed the default value of the db_schema to main, instead of throwing an error. And fixed a bug related to returning column names on Arrow Schemas. These column names were char* pointers owned by DuckDB Query Results in Arrow. If the query result was released before the consumption of the schema, data could be trashed.

These are now properly allocated and released on the arrow release methods

@@ -21,6 +21,15 @@ void ArrowConverter::ToArrowArray(DataChunk &input, ArrowArray *out_array, Arrow
*out_array = appender.Finalize();
}

unsafe_unique_array<char> AddName(const string &name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might be solving the same issue here, #8417

@github-actions github-actions bot marked this pull request as draft July 31, 2023 12:18
tools/pythonpkg/tests/fast/test_adbc.py Outdated Show resolved Hide resolved
@pdet pdet marked this pull request as ready for review August 1, 2023 07:56
@Mytherin Mytherin merged commit 77e69a7 into duckdb:master Aug 2, 2023
53 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Aug 2, 2023

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

4 participants