private boolean containsNullDependent(Collection<AggregateSymbol> aggregates) { for (AggregateSymbol aggregateSymbol : aggregates) { //we don't consider count here as we dealing with the original aggregates, not the mapped expressions if (aggregateSymbol.getFunctionDescriptor() != null && aggregateSymbol.getFunctionDescriptor().isNullDependent()) { return true; } } return false; }
private boolean containsNullDependent(Collection<AggregateSymbol> aggregates) { for (AggregateSymbol aggregateSymbol : aggregates) { //we don't consider count here as we dealing with the original aggregates, not the mapped expressions if (aggregateSymbol.getFunctionDescriptor() != null && aggregateSymbol.getFunctionDescriptor().isNullDependent()) { return true; } } return false; }
private boolean containsNullDependent(Collection<AggregateSymbol> aggregates) { for (AggregateSymbol aggregateSymbol : aggregates) { //we don't consider count here as we dealing with the original aggregates, not the mapped expressions if (aggregateSymbol.getFunctionDescriptor() != null && aggregateSymbol.getFunctionDescriptor().isNullDependent()) { return true; } } return false; }
private void collectNotNull(Expression leftExpr, ArrayList<ElementSymbol> notNull) { if (leftExpr instanceof ElementSymbol) { notNull.add((ElementSymbol)leftExpr); } else if (leftExpr instanceof Function) { Function f = (Function)leftExpr; if (!f.getFunctionDescriptor().isNullDependent()) { for (Expression arg : f.getArgs()) { collectNotNull(arg, notNull); } } } }
private void collectNotNull(Expression leftExpr, ArrayList<ElementSymbol> notNull) { if (leftExpr instanceof ElementSymbol) { notNull.add((ElementSymbol)leftExpr); } else if (leftExpr instanceof Function) { Function f = (Function)leftExpr; if (!f.getFunctionDescriptor().isNullDependent()) { for (Expression arg : f.getArgs()) { collectNotNull(arg, notNull); } } } }
private void collectNotNull(Expression leftExpr, ArrayList<ElementSymbol> notNull) { if (leftExpr instanceof ElementSymbol) { notNull.add((ElementSymbol)leftExpr); } else if (leftExpr instanceof Function) { Function f = (Function)leftExpr; if (!f.getFunctionDescriptor().isNullDependent()) { for (Expression arg : f.getArgs()) { collectNotNull(arg, notNull); } } } }
if (!isNullDependent()) { for (int i = requiresContext?1:0; i < values.length; i++) { if (values[i] == null) {
if (!isNullDependent()) { for (int i = requiresContext?1:0; i < values.length; i++) { if (values[i] == null) {
if (!isNullDependent()) { for (int i = requiresContext?1:0; i < values.length; i++) { if (values[i] == null) {
@Test public void testNullDependent() { FunctionDescriptor actual = library.findFunction("concat2", new Class<?>[] {String.class, String.class}); //$NON-NLS-1$ assertTrue(actual.isNullDependent()); actual = library.findFunction("concat", new Class<?>[] {String.class, String.class}); //$NON-NLS-1$ assertFalse(actual.isNullDependent()); }
Expression ex = rewriteExpressionDirect(args[i]); if (isNull(ex)) { if (!function.getFunctionDescriptor().isNullDependent()) { return new Constant(null, function.getType());
Expression ex = rewriteExpressionDirect(args[i]); if (isNull(ex)) { if (!function.getFunctionDescriptor().isNullDependent()) { return new Constant(null, function.getType());
Expression ex = rewriteExpressionDirect(args[i]); if (isNull(ex)) { if (!function.getFunctionDescriptor().isNullDependent()) { return new Constant(null, function.getType());
&& as.getFunctionDescriptor().isNullDependent()) { return null;
&& as.getFunctionDescriptor().isNullDependent()) { return null;
&& as.getFunctionDescriptor().isNullDependent()) { return null;