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

feat(c): Implement ingestion and testing for float16, string_view, and binary_view #2234

Merged
merged 7 commits into from
Oct 17, 2024

Conversation

paleolimbot
Copy link
Member

@paleolimbot paleolimbot commented Oct 8, 2024

This PR tests ingestion of half float, string view, and binary view, for which support was added between nanoarrow 0.5.0 and nanoarrow 0.6.0. It also removes some skips for various combinations of numeric types for which support was already available that I missed when adding support for those types.

@@ -263,6 +267,11 @@ void StatementTest::TestSqlIngestLargeString() {
NANOARROW_TYPE_LARGE_STRING, {std::nullopt, "", "", "1234", "例"}, false));
}

void StatementTest::TestSqlIngestStringView() {
ASSERT_NO_FATAL_FAILURE(TestSqlIngestType<std::string>(
NANOARROW_TYPE_STRING_VIEW, {std::nullopt, "", "", "1234", "例"}, false));
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how much this affects the test suite, but probably good to add a string here that will exceed the inline size (maybe even as a separate test)

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call!

@paleolimbot paleolimbot marked this pull request as ready for review October 16, 2024 04:15
@github-actions github-actions bot added this to the ADBC Libraries 15 milestone Oct 16, 2024
@paleolimbot paleolimbot merged commit 0366632 into apache:main Oct 17, 2024
67 checks passed
@paleolimbot paleolimbot deleted the c-driver-ingest-more-types branch October 17, 2024 02: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.

3 participants