private static ExprNodeDesc getListIndexNode(ExprNodeDesc node, ExprNodeDesc index) throws Exception { ArrayList<ExprNodeDesc> children = new ArrayList<ExprNodeDesc>(2); children.add(node); children.add(index); return new ExprNodeGenericFuncDesc(((ListTypeInfo) node.getTypeInfo()) .getListElementTypeInfo(), FunctionRegistry.getGenericUDFForIndex(), children); }
desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children); } else if (myt.getCategory() == Category.MAP) { if (!TypeInfoUtils.implicitConvertible(children.get(1).getTypeInfo(), desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children); } else { throw new SemanticException(ErrorMsg.NON_COLLECTION_TYPE.getMsg(expr, myt.getTypeName()));
desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children); } else if (myt.getCategory() == Category.MAP) { if (!TypeInfoUtils.implicitConvertible(children.get(1).getTypeInfo(), desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children); } else { throw new SemanticException(ErrorMsg.NON_COLLECTION_TYPE.getMsg(expr, myt.getTypeName()));
desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children); } else if (myt.getCategory() == Category.MAP) { if (!FunctionRegistry.implicitConvertible(children.get(1).getTypeInfo(), desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children); } else { throw new SemanticException(ErrorMsg.NON_COLLECTION_TYPE.getMsg(expr, myt.getTypeName()));
.getGenericUDFForIndex(), children); } else if (myt.getCategory() == Category.MAP) { .getGenericUDFForIndex(), children); } else { throw new SemanticException(ErrorMsg.NON_COLLECTION_TYPE.getMsg(expr,