MCPcopy Create free account
hub / github.com/cortexproject/cortex / Unmarshal

Function Unmarshal

pkg/distributed_execution/codec.go:28–30  ·  view source on GitHub ↗

Unmarshal deserializes a logical plan node from JSON data. This is a custom implementation for Cortex that is copied from Thanos engine's unmarshaling func to support remote nodes. We maintain this separate implementation because Thanos engine's logical plan codec currently doesn't support custom no

(data []byte)

Source from the content-addressed store, hash-verified

26// to support remote nodes. We maintain this separate implementation because Thanos engine's
27// logical plan codec currently doesn't support custom node types in its unmarshaling process.
28func Unmarshal(data []byte) (logicalplan.Node, error) {
29 return unmarshalNode(data)
30}
31
32func unmarshalNode(data []byte) (logicalplan.Node, error) {
33 t := jsonNode{}

Callers 4

RangeQueryHandlerMethod · 0.92
InstantQueryHandlerMethod · 0.92

Calls 1

unmarshalNodeFunction · 0.85

Tested by 1