public void visit(Function obj) { try { resolveFunction(obj, this.metadata.getFunctionLibrary()); if (obj.isAggregate()) { hasUserDefinedAggregate = true; } } catch(QueryResolverException e) { if (QueryPlugin.Event.TEIID30069.name().equals(e.getCode()) || QueryPlugin.Event.TEIID30067.name().equals(e.getCode())) { if (unresolvedFunctions == null) { unresolvedFunctions = new LinkedHashMap<Function, QueryResolverException>(); } unresolvedFunctions.put(obj, e); } else { handleException(e); } } catch(TeiidComponentException e) { handleException(e); } }
public void visit(Function obj) { try { resolveFunction(obj, this.metadata.getFunctionLibrary()); if (obj.isAggregate()) { hasUserDefinedAggregate = true; } } catch(QueryResolverException e) { if (QueryPlugin.Event.TEIID30069.name().equals(e.getCode()) || QueryPlugin.Event.TEIID30067.name().equals(e.getCode())) { if (unresolvedFunctions == null) { unresolvedFunctions = new LinkedHashMap<Function, QueryResolverException>(); } unresolvedFunctions.put(obj, e); } else { handleException(e); } } catch(TeiidComponentException e) { handleException(e); } }
public void visit(Function obj) { try { resolveFunction(obj, this.metadata.getFunctionLibrary()); if (obj.isAggregate()) { hasUserDefinedAggregate = true; } } catch(QueryResolverException e) { if (QueryPlugin.Event.TEIID30069.name().equals(e.getCode()) || QueryPlugin.Event.TEIID30067.name().equals(e.getCode())) { if (unresolvedFunctions == null) { unresolvedFunctions = new LinkedHashMap<Function, QueryResolverException>(); } unresolvedFunctions.put(obj, e); } else { handleException(e); } } catch(TeiidComponentException e) { handleException(e); } }
public Expression replaceExpression(Expression element) { if (element instanceof Function && !(element instanceof AggregateSymbol) && ((Function) element).isAggregate()) { Function f = (Function)element; AggregateSymbol as = new AggregateSymbol(f.getName(), false, f.getArgs(), null); as.setType(f.getType()); as.setFunctionDescriptor(f.getFunctionDescriptor()); return as; } return element; } };
public Expression replaceExpression(Expression element) { if (element instanceof Function && !(element instanceof AggregateSymbol) && ((Function) element).isAggregate()) { Function f = (Function)element; AggregateSymbol as = new AggregateSymbol(f.getName(), false, f.getArgs(), null); as.setType(f.getType()); as.setFunctionDescriptor(f.getFunctionDescriptor()); return as; } return element; } };
public Expression replaceExpression(Expression element) { if (element instanceof Function && !(element instanceof AggregateSymbol) && ((Function) element).isAggregate()) { Function f = (Function)element; AggregateSymbol as = new AggregateSymbol(f.getName(), false, f.getArgs(), null); as.setType(f.getType()); as.setFunctionDescriptor(f.getFunctionDescriptor()); return as; } return element; } };
handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.invalid_encoding", obj.getArg(1)), obj); //$NON-NLS-1$ } else if (obj.isAggregate()) { handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.user_defined_aggregate_as_function", obj, obj.getName()), obj); //$NON-NLS-1$ } else if (FunctionLibrary.JSONARRAY.equalsIgnoreCase(obj.getName())) {
handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.invalid_encoding", obj.getArg(1)), obj); //$NON-NLS-1$ } else if (obj.isAggregate()) { handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.user_defined_aggregate_as_function", obj, obj.getName()), obj); //$NON-NLS-1$ } else if (FunctionLibrary.JSONARRAY.equalsIgnoreCase(obj.getName())) {
handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.invalid_encoding", obj.getArg(1)), obj); //$NON-NLS-1$ } else if (obj.isAggregate()) { handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.user_defined_aggregate_as_function", obj, obj.getName()), obj); //$NON-NLS-1$ } else if (FunctionLibrary.JSONARRAY.equalsIgnoreCase(obj.getName())) {