We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14f23d6 commit 7d2a64cCopy full SHA for 7d2a64c
src/utils.ts
@@ -439,6 +439,18 @@ export function validateMultiLineStringType(
439
return true;
440
}
441
442
+export function validateMultiPolygonType(
443
+ type: arrow.DataType
444
+): type is Polygon {
445
+ // Assert the outer vector is a List
446
+ assert(arrow.DataType.isList(type));
447
+
448
+ // Assert its inner vector is a linestring layout
449
+ validatePolygonType(type.children[0].type);
450
451
+ return true;
452
+}
453
454
export function getListNestingLevels(data: arrow.Data): number {
455
let nestingLevels = 0;
456
if (arrow.DataType.isList(data.type)) {
0 commit comments