internal override ScalarFunction CompileToFunction(QueryCompilationContext context, GraphViewConnection dbConnection) { QueryCompilationContext subContext = new QueryCompilationContext(context); GraphViewExecutionOperator subQueryOp = SubQueryExpr.Compile(subContext, dbConnection); return(new ScalarSubqueryFunction(subQueryOp, subContext.OuterContextOp)); }
internal override ScalarFunction CompileToFunction(QueryCompilationContext context, GraphViewCommand command) { QueryCompilationContext subContext = new QueryCompilationContext(context); Container container = new Container(); subContext.OuterContextOp.SetContainer(container); GraphViewExecutionOperator subQueryOp = SubQueryExpr.Compile(subContext, command); return(new ScalarSubqueryFunction(subQueryOp, container)); }