tajo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyunsik Choi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TAJO-1876) TaskImpl potentially may miss some TableDesc if they are duplicated.
Date Sat, 02 Dec 2017 17:32:00 GMT

     [ https://issues.apache.org/jira/browse/TAJO-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hyunsik Choi updated TAJO-1876:
-------------------------------
    Fix Version/s:     (was: 0.12.0)
                   0.13.0

> TaskImpl potentially may miss some TableDesc if they are duplicated.
> --------------------------------------------------------------------
>
>                 Key: TAJO-1876
>                 URL: https://issues.apache.org/jira/browse/TAJO-1876
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Hyunsik Choi
>            Priority: Critical
>             Fix For: 0.13.0
>
>
> See TaskImpl::updateDescsForScanNodes. A plan part can include duplicated canonical names
if derived subqueries are included in the plan part.
> {code}
> private void updateDescsForScanNodes(NodeType nodeType) {
>     assert nodeType == NodeType.SCAN || nodeType == NodeType.PARTITIONS_SCAN || nodeType
== NodeType.INDEX_SCAN;
>     LogicalNode[] scanNodes = PlannerUtil.findAllNodes(plan, nodeType);
>     if (scanNodes != null) {
>       for (LogicalNode node : scanNodes) {
>         ScanNode scanNode = (ScanNode) node;
>         descs.put(scanNode.getCanonicalName(), scanNode.getTableDesc());
>       }
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message