Skip to content

Commit 2520c01

Browse files
committed
port tests over
1 parent bcc2d98 commit 2520c01

File tree

3 files changed

+568
-2
lines changed

3 files changed

+568
-2
lines changed

src/geoarrow/builder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct BuilderPrivate {
3434
int64_t size[32];
3535
int32_t level;
3636
int64_t null_count;
37-
};
37+
};
3838

3939
static ArrowErrorCode GeoArrowBuilderInitArrayAndCachePointers(
4040
struct GeoArrowBuilder* builder) {

src/geoarrow/native_writer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ struct GeoArrowNativeWriterPrivate {
1515
struct GeoArrowBuilder builder;
1616

1717
struct ArrowBitmap validity;
18+
int64_t null_count;
1819

1920
// Fields to keep track of state
2021
int output_initialized;
@@ -25,7 +26,6 @@ struct GeoArrowNativeWriterPrivate {
2526
enum GeoArrowDimensions last_dimensions;
2627
int64_t size[32];
2728
int32_t level;
28-
int64_t null_count;
2929
};
3030

3131
GeoArrowErrorCode GeoArrowNativeWriterInit(struct GeoArrowNativeWriter* writer,
@@ -85,6 +85,7 @@ static GeoArrowErrorCode GeoArrowNativeWriterEnsureOutputInitialized(
8585
NANOARROW_RETURN_NOT_OK(GeoArrowBuilderOffsetAppend(builder, i, &zero, 1));
8686
}
8787

88+
private_data->null_count = 0;
8889
NANOARROW_RETURN_NOT_OK(ArrowBitmapResize(&private_data->validity, 0, 0));
8990

9091
private_data->builder.view.coords.size_coords = 0;

0 commit comments

Comments
 (0)