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

Update Java DuckDBAppender to allow appending null values - fixes issue 3035 #3039

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

rkennedy-mode
Copy link
Contributor

Updates Java DuckDBAppender to allow appending null values. The version of the append method that takes a java.lang.String now properly handles being passed null by invoking the corresponding version of the C++ Appender class to append a null value, regardless of column type.

Includes additional unit tests to verify that null values can now be appended in integer and varchar columns.

Closes #3035.

Updates Java DuckDBAppender to allow appending null values. The version
of the append method that takes a java.lang.String now properly handles
being passed null by invoking the corresponding version of the C++
Appender class to append a null value, regardless of column type.

Includes additional unit tests to verify that null values can now be
appended in integer and varchar columns.

Closes #3035.
Looks like it fixed some indentation issues in duckdb_java.cpp.
@rkennedy-mode rkennedy-mode changed the title Duckdb issue 3035 Update Java DuckDBAppender to allow appending null values - fixes issue 3035 Feb 5, 2022
@Mytherin
Copy link
Collaborator

Mytherin commented Feb 5, 2022

Thanks for the PR! Looks good to me, but perhaps someone more versed in Java wants to have a look? @hannesmuehleisen or @hawkfish ?

@hannes
Copy link
Member

hannes commented Feb 5, 2022

Lgtm

@Mytherin Mytherin merged commit 5aebf7d into duckdb:master Feb 7, 2022
@Mytherin
Copy link
Collaborator

Mytherin commented Feb 7, 2022

Thanks!

@rkennedy-mode rkennedy-mode deleted the duckdb-issue-3035 branch February 7, 2022 17:23
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.

Java DuckDBAppender doesn't support NULL values
3 participants