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)
| 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. |
| 28 | func Unmarshal(data []byte) (logicalplan.Node, error) { |
| 29 | return unmarshalNode(data) |
| 30 | } |
| 31 | |
| 32 | func unmarshalNode(data []byte) (logicalplan.Node, error) { |
| 33 | t := jsonNode{} |