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

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

Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/434#discussion_r26903529
  
    --- Diff: 
tajo-plan/src/main/java/org/apache/tajo/plan/util/PlannerUtil.java ---
    @@ -133,11 +134,90 @@ public static boolean checkIfSimpleQuery(LogicalPlan 
plan) {
               }
             }
           }
    +
    +      if (!noWhere && scanNode.getTableDesc().isExternal() && 
scanNode.getTableDesc().getPartitionMethod() != null) {
    --- End diff --
    
    After fixing that issue, I planned to move to managed table creation. 
    Actually, I don't know Tajo internal managed table file structure. 
    I'm familiar with Hive only.


> Improve 'Simple Query' with only partition columns and constant values
> ----------------------------------------------------------------------
>
>                 Key: TAJO-1403
>                 URL: https://issues.apache.org/jira/browse/TAJO-1403
>             Project: Tajo
>          Issue Type: Improvement
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>             Fix For: 0.11.0
>
>         Attachments: TAJO-1403.patch
>
>
> Tajo shows a very fast response for a simple query ( 
> https://cwiki.apache.org/confluence/display/TAJO/Simple+Query+and+Forwarded+Query)
>  like the followings.
> {code:sql}
> select * from t1 limit 10;
> {code}
> However, in many cases, tables have partitions. 
> {code:sql}
> create external table t1(id int) using csv with ('csvfile.delimiter'='|') 
> partition by column(dt text) location '/data';
> select * from t1 where dt='2015-03-15' limit 10;
> {code}
> If all predicates in WHERE consist of partition columns and 'EQUAL' 
> predicates with constant values, I think Tajo can handle these cases very 
> fast. 
> This kind of queries is very popular for DevOps users and simple ETL apps.



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

Reply via email to