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

Function ExampleDictExtension

cpp/src/arrow/testing/gtest_util.cc:1048–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046}
1047
1048std::shared_ptr<Array> ExampleDictExtension() {
1049 auto arr = DictArrayFromJSON(dictionary(int8(), utf8()), "[0, 1, null, 1]",
1050 R"(["foo", "bar"])");
1051 return ExtensionType::WrapArray(dict_extension_type(), arr);
1052}
1053
1054std::shared_ptr<Array> ExampleComplex128() {
1055 auto arr = arrow::ArrayFromJSON(struct_({field("", float64()), field("", float64())}),

Callers

nothing calls this directly

Calls 3

DictArrayFromJSONFunction · 0.85
dict_extension_typeFunction · 0.85
dictionaryFunction · 0.50

Tested by

no test coverage detected