mdayakar commented on code in PR #115:
URL: https://github.com/apache/hive-site/pull/115#discussion_r3913889546


##########
content/docs/latest/user/hive-hplsql/functions/part-count.md:
##########
@@ -0,0 +1,72 @@
+---
+title: "Apache Hive : PART_COUNT Function"
+date: 2026-08-12
+---
+
+# Apache Hive : PART_COUNT Function
+
+PART_COUNT function returns the number partitions in the specified table.
+
+**Syntax**:
+
+```
+PART_COUNT([db_name.]table_name, part_col=filter, ...); 
+```
+
+**Parameters:**
+
+| [dbname.]table_name | Identifier, variable or expression |
+| --- | --- |
+| part_col=filter | One or more partition filters |
+
+**Notes**:
+
+- HPL/SQL uses the following Hive statement to get the partition information:
+
+```
+SHOW PARTITIONS db_name.tab_name [PARTITION (part_col=filter, ...)]
+```
+
+**Return Value:**
+
+- The number of partitions
+- NULL if the table does not exist or an error occurs
+
+**Return Type:**
+
+INT
+
+**Examples:**
+
+Table *db.orders* is partitioned by *dt* and *region* columns and has the 
following partitions:
+
+| dt=2015-09-01/region=1 |

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to