Skip to content

Commit 5c676c9

Browse files
committed
fix test
Signed-off-by: Andrew Duffy <[email protected]>
1 parent 157ee48 commit 5c676c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vortex-layout/src/layouts/path.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,15 @@ impl LayoutStrategy for PathStrategy {
163163
handle: Handle,
164164
) -> VortexResult<LayoutRef> {
165165
let dtype = stream.dtype().clone();
166+
167+
// Fallback: if the array is not a struct, fallback to writing a single array.
168+
if !dtype.is_struct() {
169+
return self
170+
.fallback
171+
.write_stream(ctx, segment_sink, stream, eof, handle)
172+
.await;
173+
}
174+
166175
let struct_dtype = dtype.as_struct_fields();
167176

168177
// Check for unique field names at write time.

0 commit comments

Comments
 (0)