Github user hyunsik commented on a diff in the pull request:
https://github.com/apache/tajo/pull/71#discussion_r15042369
--- Diff:
tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanner.java ---
@@ -712,7 +718,8 @@ public LimitNode visitLimit(PlanContext context,
Stack<Expr> stack, Limit limit)
EvalNode firstFetNum;
LogicalNode child;
if (limit.getFetchFirstNum().getType() == OpType.Literal) {
- firstFetNum = exprAnnotator.createEvalNode(context.plan, block,
limit.getFetchFirstNum());
+ firstFetNum = exprAnnotator.createEvalNode(context.plan, block,
limit.getFetchFirstNum(),
+ NameResolvingMode.RELS_ONLY);
--- End diff --
LIMIT has only constant. It does not have column reference. Its reason is
the same that I commented for non-from statement.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---