MCPcopy Create free account
hub / github.com/apache/arrow / AppendListOfInferred

Method AppendListOfInferred

cpp/src/arrow/array/array_union_test.cc:510–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508 }
509
510 void AppendListOfInferred(std::shared_ptr<ListArray>* actual) {
511 ListBuilder list_builder(default_memory_pool(), union_builder);
512
513 ASSERT_OK(list_builder.Append());
514 I8 = union_builder->AppendChild(i8_builder, "i8");
515 ASSERT_EQ(I8, 0);
516 AppendInt(10);
517
518 ASSERT_OK(list_builder.Append());
519 STR = union_builder->AppendChild(str_builder, "str");
520 ASSERT_EQ(STR, 1);
521 AppendString("abc");
522 AppendInt(-10);
523
524 ASSERT_OK(list_builder.Append());
525 DBL = union_builder->AppendChild(dbl_builder, "dbl");
526 ASSERT_EQ(DBL, 2);
527 AppendDouble(0.5);
528
529 ASSERT_OK(list_builder.Finish(actual));
530 ASSERT_OK((*actual)->ValidateFull());
531 ArrayFromVector<Int8Type, uint8_t>(expected_types_vector, &expected_types);
532 }
533
534 std::vector<uint8_t> expected_types_vector;
535 std::shared_ptr<Array> expected_types;

Callers

nothing calls this directly

Calls 5

default_memory_poolFunction · 0.85
AppendChildMethod · 0.80
AppendMethod · 0.45
FinishMethod · 0.45
ValidateFullMethod · 0.45

Tested by

no test coverage detected