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

ASF GitHub Bot commented on HAWQ-404:
-------------------------------------

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

    https://github.com/apache/incubator-hawq/pull/337#discussion_r52539279
  
    --- Diff: src/backend/utils/cache/lsyscache.c ---
    @@ -1799,6 +1799,25 @@ get_rel_name_partition(Oid relid)
        return rel_name;
     }
     
    +/*
    + * get_rel_number_partitions
    + *
    + *         Returns the number of leaf partitions for a given root relation.
    + *         Returns 0 if the relation is not a partition table or non-root 
partition table.
    + */
    +int32
    +get_rel_number_partitions(Oid relid)
    +{
    +   if (PART_STATUS_NONE == rel_part_status(relid))
    +           return 0;
    +
    +   if (!rel_is_partitioned(relid))
    +           return 0;
    +
    +   int count = countLeafPartTables(relid);
    --- End diff --
    
    for interior partitions, rel_is_partitioned(relid) will return false. 0 
will be returned.


> Add sort during INSERT of append only row oriented partition tables
> -------------------------------------------------------------------
>
>                 Key: HAWQ-404
>                 URL: https://issues.apache.org/jira/browse/HAWQ-404
>             Project: Apache HAWQ
>          Issue Type: Improvement
>            Reporter: Haisheng Yuan
>            Assignee: Lei Chang
>




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

Reply via email to