[
https://issues.apache.org/jira/browse/HAWQ-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141808#comment-15141808
]
ASF GitHub Bot commented on HAWQ-404:
-------------------------------------
Github user vraghavan78 commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/337#discussion_r52535000
--- 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;
--- End diff --
comment this please.
> 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)