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

Function Compile

compiler/package.go:83–89  ·  view source on GitHub ↗
(rctx *runtime.Context, env *exec.Environment, optimize bool, parallel int, readers []sio.Reader, inputs []srcfiles.Input)

Source from the content-addressed store, hash-verified

81}
82
83func Compile(rctx *runtime.Context, env *exec.Environment, optimize bool, parallel int, readers []sio.Reader, inputs []srcfiles.Input) (*exec.Query, error) {
84 ast, err := parser.ParseFiles(inputs)
85 if err != nil {
86 return nil, err
87 }
88 return CompileWithAST(rctx, ast, env, optimize, parallel, readers)
89}
90
91func bundleOutputs(rctx *runtime.Context, outputs map[string]vio.Puller, chans *op.DebugChans) vio.Puller {
92 switch len(outputs) + len(chans.Debug) {

Callers

nothing calls this directly

Calls 2

ParseFilesFunction · 0.92
CompileWithASTFunction · 0.85

Tested by

no test coverage detected