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

Function CompileQuery

runtime/compiler.go:30–38  ·  view source on GitHub ↗
(ctx context.Context, sctx *super.Context, c Compiler, ast *parser.AST, readers []sio.Reader)

Source from the content-addressed store, hash-verified

28}
29
30func CompileQuery(ctx context.Context, sctx *super.Context, c Compiler, ast *parser.AST, readers []sio.Reader) (Query, error) {
31 rctx := NewContext(ctx, sctx)
32 q, err := c.NewQuery(rctx, ast, readers, 0)
33 if err != nil {
34 rctx.Cancel()
35 return nil, err
36 }
37 return q, nil
38}
39
40func CompileQueryForDB(ctx context.Context, sctx *super.Context, c Compiler, ast *parser.AST) (Query, error) {
41 rctx := NewContext(ctx, sctx)

Callers 4

runFunction · 0.92
RunMethod · 0.92
RunQueryFunction · 0.92
runInternalFunction · 0.92

Calls 3

CancelMethod · 0.95
NewContextFunction · 0.70
NewQueryMethod · 0.65

Tested by

no test coverage detected