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

Function ExampleDictExtension

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

Source from the content-addressed store, hash-verified

1038}
1039
1040std::shared_ptr<Array> ExampleDictExtension() {
1041 auto arr = DictArrayFromJSON(dictionary(int8(), utf8()), "[0, 1, null, 1]",
1042 R"(["foo", "bar"])");
1043 return ExtensionType::WrapArray(dict_extension_type(), arr);
1044}
1045
1046std::shared_ptr<Array> ExampleComplex128() {
1047 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