Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ public unsafe void ImportArray()
}

ArrowType type = CArrowSchemaImporter.ImportType(cSchema);
CArrowSchema.Free(cSchema);
StringArray importedArray = (StringArray)CArrowArrayImporter.ImportArray(cArray, type);

Assert.Equal(5, importedArray.Length);
Expand Down Expand Up @@ -533,6 +534,7 @@ public unsafe void ImportRecordBatch()
}

Schema schema = CArrowSchemaImporter.ImportSchema(cSchema);
CArrowSchema.Free(cSchema);
RecordBatch recordBatch = CArrowArrayImporter.ImportRecordBatch(cArray, schema);
CArrowArray.Free(cArray);

Expand Down Expand Up @@ -1160,6 +1162,7 @@ public unsafe void ImportGuidArray()
registry.Register(GuidExtensionDefinition.Instance);

Field field = CArrowSchemaImporter.ImportField(cSchema, registry);
CArrowSchema.Free(cSchema);
Assert.IsType<GuidType>(field.DataType);

IArrowArray importedArray = CArrowArrayImporter.ImportArray(cArray, field.DataType);
Expand Down Expand Up @@ -1411,6 +1414,7 @@ public unsafe void ImportBool8Array()
registry.Register(Bool8ExtensionDefinition.Instance);

Field field = CArrowSchemaImporter.ImportField(cSchema, registry);
CArrowSchema.Free(cSchema);
Assert.IsType<Bool8Type>(field.DataType);

IArrowArray importedArray = CArrowArrayImporter.ImportArray(cArray, field.DataType);
Expand Down
Loading