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

Function TEST

cpp/src/arrow/array/array_dict_test.cc:395–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395TEST(TestDictionaryBuilderAdHoc, AppendIndicesUpdateCapacity) {
396 DictionaryBuilder<Int32Type> builder;
397 Dictionary32Builder<Int32Type> builder32;
398
399 std::vector<int32_t> indices_i32 = {0, 1, 2};
400 std::vector<int64_t> indices_i64 = {0, 1, 2};
401
402 ASSERT_OK(builder.AppendIndices(indices_i64.data(), 3));
403 ASSERT_OK(builder32.AppendIndices(indices_i32.data(), 3));
404
405 ASSERT_LT(0, builder.capacity());
406 ASSERT_LT(0, builder32.capacity());
407}
408
409TEST(TestStringDictionaryBuilder, Basic) {
410 // Build the dictionary Array

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
AssertArraysEqualFunction · 0.85
FinishAndCheckPaddingFunction · 0.85
fixed_size_binaryFunction · 0.85
default_memory_poolFunction · 0.85
decimal256Function · 0.85
FromArraysFunction · 0.85
ClearBitFunction · 0.85
CheckTransposeFunction · 0.85
listFunction · 0.85
CheckDictionaryCompactFunction · 0.85

Tested by

no test coverage detected