coral-beam/src/main/java/com/linkedin/beam/utils/RexBeamUtils.java
static Expression buildNullSafeExpr(List<Expression> exprs) {
    Expression result = notNull(exprs.get(0));
    final Set<Expression> visited = new HashSet<>();
    visited.add(exprs.get(0));
    for (int i = 1; i < exprs.size(); i++) {
      if (exprs.get(i).getNodeType() != ExpressionType.Constant
          && !visited.contains(exprs.get(i))) {
        result = Expressions.andAlso(result, notNull(exprs.get(i)));
        visited.add(exprs.get(i));
      }
    }
    return result;
  }
/**
   * Builds an exprssion to check whether any expression in an expression list is null.
   *
   * @param exprs List of expression
   * @return Condition expression for checking if any of the expressions is null.
   */
Builds an exprssion to check whether any expression in an expression list is null.
@param exprs List of expression
@return Condition expression for checking if any of the expressions is null.
Builds an exprssion to check whether any expression in an expression list is null . @param exprs List of expression @return Condition expression for checking if any of the expressions is null .
static Expression buildNullSafeExpr(List<Expression> exprs) {
    Expression result = notNull(exprs.get(0));
    final Set<Expression> visited = new HashSet<>();
    visited.add(exprs.get(0));
    for (int i = 1; i < exprs.size(); i++) {
      if (exprs.get(i).getNodeType() != ExpressionType.Constant
          && !visited.contains(exprs.get(i))) {
        result = Expressions.andAlso(result, notNull(exprs.get(i)));
        visited.add(exprs.get(i));
      }
    }
    return result;
  }
static Expression buildNullSafeExpr ( List < Expression > exprs ) { Expression result = notNull ( exprs . get ( 0 ) ) ; final Set < Expression > visited = new HashSet < > ( ) ; visited . add ( exprs . get ( 0 ) ) ; for ( int i = 1 ; i < exprs . size ( ) ; i ++ ) { if ( exprs . get ( i ) . getNodeType ( ) != ExpressionType . Constant && ! visited . contains ( exprs . get ( i ) ) ) { result = Expressions . andAlso ( result , notNull ( exprs . get ( i ) ) ) ; visited . add ( exprs . get ( i ) ) ; } } return result ; }
Builds an exprssion to check whether any expression in an expression list is null.
Builds an exprssion to check whether any expression in an expression list is null .