@Override public RexNode visitTableInputRef(RexTableInputRef inputRef) { if (tableMapping != null) { inputRef = RexTableInputRef.of( tableMapping.get(inputRef.getTableRef()), inputRef.getIndex(), inputRef.getType()); } if (ec != null) { Set<RexTableInputRef> s = ec.get(inputRef); if (s != null) { inputRef = s.iterator().next(); } } return inputRef; } };
@Override public RexNode visitTableInputRef(RexTableInputRef inputRef) { if (tableMapping != null) { inputRef = RexTableInputRef.of( tableMapping.get(inputRef.getTableRef()), inputRef.getIndex(), inputRef.getType()); } if (ec != null) { Set<RexTableInputRef> s = ec.get(inputRef); if (s != null) { inputRef = s.iterator().next(); } } return inputRef; } };
@Override public RexNode visitTableInputRef(RexTableInputRef inputRef) { if (ec != null) { Set<RexTableInputRef> s = ec.get(inputRef); if (s != null) { inputRef = s.iterator().next(); } } if (tableMapping != null) { inputRef = RexTableInputRef.of( tableMapping.get(inputRef.getTableRef()), inputRef.getIndex(), inputRef.getType()); } return inputRef; } };
@Override public RexNode visitTableInputRef(RexTableInputRef inputRef) { if (ec != null) { Set<RexTableInputRef> s = ec.get(inputRef); if (s != null) { inputRef = s.iterator().next(); } } if (tableMapping != null) { inputRef = RexTableInputRef.of( tableMapping.get(inputRef.getTableRef()), inputRef.getIndex(), inputRef.getType()); } return inputRef; } };
@Override public RexNode visitTableInputRef(RexTableInputRef ref) { Collection<Integer> c = exprsLineage.get(ref); if (c.isEmpty()) { // Cannot map expression throw Util.FoundOne.NULL; } int pos = c.iterator().next(); if (rewritingMapping != null) { pos = rewritingMapping.getTargetOpt(pos); if (pos == -1) { // Cannot map expression throw Util.FoundOne.NULL; } } if (node != null) { return rexBuilder.makeInputRef(node, pos); } return rexBuilder.makeInputRef(ref.getType(), pos); }
@Override public RexNode visitTableInputRef(RexTableInputRef ref) { Collection<Integer> c = exprsLineage.get(ref.toString()); if (c.isEmpty()) { // Cannot map expression throw Util.FoundOne.NULL; } int pos = c.iterator().next(); if (rewritingMapping != null) { pos = rewritingMapping.getTargetOpt(pos); if (pos == -1) { // Cannot map expression throw Util.FoundOne.NULL; } } if (node != null) { return rexBuilder.makeInputRef(node, pos); } return rexBuilder.makeInputRef(ref.getType(), pos); }
e.getKey().getTableRef()); RexTableInputRef queryColumnRef = RexTableInputRef.of(queryTableRef, e.getKey().getIndex(), e.getKey().getType());
e.getKey().getTableRef()); RexTableInputRef queryColumnRef = RexTableInputRef.of(queryTableRef, e.getKey().getIndex(), e.getKey().getType());