MCPcopy Create free account
hub / github.com/brimdata/super / parseOp

Function parseOp

compiler/parser/parser_test.go:41–47  ·  view source on GitHub ↗
(z string)

Source from the content-addressed store, hash-verified

39}
40
41func parseOp(z string) ([]byte, error) {
42 ast, err := parser.ParseText(z)
43 if err != nil {
44 return nil, err
45 }
46 return json.Marshal(ast.Parsed())
47}
48
49func parsePigeon(z string) ([]byte, error) {
50 ast, err := parser.Parse("", []byte(z))

Callers 1

testQueryFunction · 0.85

Calls 3

ParseTextFunction · 0.92
ParsedMethod · 0.80
MarshalMethod · 0.45

Tested by

no test coverage detected