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

Function ExampleDictExtension

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

Source from the content-addressed store, hash-verified

1077}
1078
1079std::shared_ptr<Array> ExampleDictExtension() {
1080 auto arr = DictArrayFromJSON(dictionary(int8(), utf8()), "[0, 1, null, 1]",
1081 R"(["foo", "bar"])");
1082 return ExtensionType::WrapArray(dict_extension_type(), arr);
1083}
1084
1085std::shared_ptr<Array> ExampleComplex128() {
1086 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