[ 
https://issues.apache.org/jira/browse/TAJO-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15003361#comment-15003361
 ] 

ASF GitHub Bot commented on TAJO-1946:
--------------------------------------

Github user dkhwangbo commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/839#discussion_r44740942
  
    --- Diff: 
tajo-plan/src/main/java/org/apache/tajo/plan/logical/TableSubQueryNode.java ---
    @@ -108,14 +111,19 @@ public boolean hasTargets() {
       }
     
       @Override
    -  public void setTargets(Target[] targets) {
    +  public void setTargets(List<Target> targets) {
         this.targets = targets;
         setOutSchema(PlannerUtil.targetToSchema(targets));
       }
     
       @Override
    -  public Target[] getTargets() {
    -    return targets;
    +  public List<Target> getTargets() {
    +    if (hasTargets()) {
    +      return targets;
    --- End diff --
    
    As my understanding of your word, I replace ```return targets;``` with 
```Collections.unmodifiableList(targets);``` but several error is occured 
during unit test.
    Am I misunderstood your comment? Can I get some details more about your 
comment?


> Change Projectable::setTargets and getTargets to set and get List<Target>
> -------------------------------------------------------------------------
>
>                 Key: TAJO-1946
>                 URL: https://issues.apache.org/jira/browse/TAJO-1946
>             Project: Tajo
>          Issue Type: Sub-task
>          Components: Planner/Optimizer
>            Reporter: Hyunsik Choi
>            Assignee: Dongkyu Hwangbo
>            Priority: Minor
>              Labels: newbie
>
> See TAJO-1938. It would simplify lots of codes for 'for-loop' on Targets if 
> we change {{Projectable::setTargets}} and {{getTargets}} to set and get 
> {{List<Target>}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to