UnnestOperator unnest = (UnnestOperator) opRef.getValue(); if (unnest.getPositionalVariable() != null) { throw new CompilationException(ErrorCode.COMPILATION_ERROR, unnest.getSourceLocation(), "No positional variables are allowed over feeds."); policy = BuiltinFeedPolicies.getFeedPolicy(policyName); if (policy == null) { throw new CompilationException(ErrorCode.COMPILATION_ERROR, unnest.getSourceLocation(), "Unknown feed policy:" + policyName); scan.setSourceLocation(unnest.getSourceLocation()); List<Mutable<ILogicalOperator>> scanInpList = scan.getInputs(); scanInpList.addAll(unnest.getInputs());
throw new CompilationException(ErrorCode.COMPILATION_ERROR, unnest.getSourceLocation(), "No positional variables are allowed over datasource functions"); variables.add(unnest.getVariable()); DataSourceScanOperator scan = new DataSourceScanOperator(variables, datasource); scan.setSourceLocation(unnest.getSourceLocation()); List<Mutable<ILogicalOperator>> scanInpList = scan.getInputs(); scanInpList.addAll(unnest.getInputs());
rOpExprList.add(new MutableObject<ILogicalExpression>(fce)); RunningAggregateOperator rOp = new RunningAggregateOperator(rOpVars, rOpExprList); rOp.setSourceLocation(unnest.getSourceLocation()); rOp.setExecutionMode(unnest.getExecutionMode()); RunningAggregatePOperator rPop = new RunningAggregatePOperator();
nestedAssignExprs.add(new MutableObject<ILogicalExpression>(arg0)); AssignOperator nestedAssign = new AssignOperator(nestedAssignVars, nestedAssignExprs); SourceLocation sourceLoc = unnest1.getSourceLocation(); nestedAssign.setSourceLocation(sourceLoc); nestedAssign.getInputs().add(opRef2);
if (unnest.getPositionalVariable() != null) { throw new CompilationException(ErrorCode.COMPILATION_ERROR, unnest.getSourceLocation(), "No positional variables are allowed over datasets."); Dataset dataset = metadataProvider.findDataset(dataverseName, datasetName); if (dataset == null) { throw new CompilationException(ErrorCode.UNKNOWN_DATASET_IN_DATAVERSE, unnest.getSourceLocation(), datasetName, dataverseName); scan.setSourceLocation(unnest.getSourceLocation()); List<Mutable<ILogicalOperator>> scanInpList = scan.getInputs(); scanInpList.addAll(unnest.getInputs());
if (subTree.getDataSourceType() == DataSourceType.COLLECTION_SCAN) { VariableReferenceExpression varRef = new VariableReferenceExpression(var); varRef.setSourceLocation(unnestOp.getSourceLocation()); optFuncExpr.setLogicalExpr(funcVarIndex, varRef); } else {