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

Appender2.0 #1

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open

Appender2.0 #1

wants to merge 57 commits into from

Conversation

maiadegraaf
Copy link
Owner

No description provided.

Copy link

@taniabogatsch taniabogatsch left a comment

Choose a reason for hiding this comment

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

Hi @maiadegraaf! Great work! I added my comments below. I'll also do another PR on the tests; I have only looked at the changes to the Appender.

From what I can tell, this will still require a follow-up PR on NULL handling. I also haven't checked out the NULL handling of go-duckdb.

Additionally, I added many naming nits closer to duckdb's naming conventions.

Also, very importantly, can you double-check your duckdb API calls to ensure we are destroying everything properly to avoid memory leaks? :)

appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
appender.go Outdated Show resolved Hide resolved
Copy link

@taniabogatsch taniabogatsch left a comment

Choose a reason for hiding this comment

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

I just had a look at the tests - nice! Since you mentioned that they can run quite long, I tried to look for potential performance bottlenecks. Maybe we can increase (inner) list sizes after the changes?

Can you maybe also add a benchmark? Maybe compared to the row-wise insertion strategy?

Also, another follow-up PR needs to test UNION and MAP. Are we throwing Not Implemented errors for them currently? I think we need to include this in this PR.

appender_modals.go Outdated Show resolved Hide resolved
appender_modals.go Outdated Show resolved Hide resolved
appender_modals.go Outdated Show resolved Hide resolved
appender_nested_test.go Outdated Show resolved Hide resolved
appender_nested_test.go Outdated Show resolved Hide resolved
appender_nested_test.go Outdated Show resolved Hide resolved
appender_nested_test.go Outdated Show resolved Hide resolved
appender_test.go Outdated Show resolved Hide resolved
rows.go Show resolved Hide resolved
appender_nested_test.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants