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

Function GetSingleSegmentScalarOutput

cpp/src/arrow/acero/hash_aggregate_test.cc:5233–5255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5231}
5232
5233Result<std::shared_ptr<ChunkedArray>> GetSingleSegmentScalarOutput() {
5234 return ChunkedArrayFromJSON(
5235 struct_({
5236 field("key_0", int64()),
5237 field("count", int64()),
5238 field("sum", float64()),
5239 field("min_max", struct_({
5240 field("min", float64()),
5241 field("max", float64()),
5242 })),
5243 field("first_last",
5244 struct_({field("first", float64()), field("last", float64())})),
5245 field("first", float64()),
5246 field("last", float64()),
5247 }),
5248 {R"([
5249 [1, 7, 8.875, {"min": -0.25, "max": 4.0}, {"first": 1.0, "last": 0.75}, 1.0, 0.75]
5250 ])",
5251 R"([
5252 [0, 7, 8.875, {"min": -0.25, "max": 4.0}, {"first": 1.0, "last": 0.75}, 1.0, 0.75]
5253
5254 ])"});
5255}
5256
5257Result<std::shared_ptr<ChunkedArray>> GetSingleSegmentKeyOutput() {
5258 return ChunkedArrayFromJSON(struct_({

Callers

nothing calls this directly

Calls 3

ChunkedArrayFromJSONFunction · 0.85
struct_Function · 0.85
fieldFunction · 0.50

Tested by

no test coverage detected