This is an automated email from the ASF dual-hosted git repository.
willayd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 24b78e3c test: Test LargeList SchemaInit without Arrow (#714)
24b78e3c is described below
commit 24b78e3cd0134dc2e4e082afbea974f8663ee9d2
Author: William Ayd <[email protected]>
AuthorDate: Wed Feb 26 16:09:14 2025 -0500
test: Test LargeList SchemaInit without Arrow (#714)
---
src/nanoarrow/common/schema_test.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/nanoarrow/common/schema_test.cc
b/src/nanoarrow/common/schema_test.cc
index d620a474..03a32499 100644
--- a/src/nanoarrow/common/schema_test.cc
+++ b/src/nanoarrow/common/schema_test.cc
@@ -138,11 +138,15 @@ TEST(SchemaTest, SchemaTestInitNestedList) {
auto arrow_type = ImportType(&schema);
ARROW_EXPECT_OK(arrow_type);
EXPECT_TRUE(arrow_type.ValueUnsafe()->Equals(list(int32())));
+#else
+ ArrowSchemaRelease(&schema);
+#endif
EXPECT_EQ(ArrowSchemaInitFromType(&schema, NANOARROW_TYPE_LARGE_LIST),
NANOARROW_OK);
EXPECT_STREQ(schema.format, "+L");
ASSERT_EQ(ArrowSchemaSetType(schema.children[0], NANOARROW_TYPE_INT32),
NANOARROW_OK);
+#if defined(NANOARROW_BUILD_TESTS_WITH_ARROW)
arrow_type = ImportType(&schema);
ARROW_EXPECT_OK(arrow_type);
EXPECT_TRUE(arrow_type.ValueUnsafe()->Equals(large_list(int32())));