show PARTITION
时间: 2023-09-28 17:07:55 浏览: 144
show PARTITION是一种用于显示表分区的命令。在Hive中,可以使用show partitions命令来显示表的分区。例如,在Hive中,可以使用"show partitions table_name;"来显示名为table_name的表的分区。在Spark中,可以使用SparkSession的sql方法执行相同的查询语句,例如"spark.sql(\"show partitions 表名\").show()"。这将显示表名为表名的表的分区。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [show partitions 分区查询](https://blog.csdn.net/weixin_45063703/article/details/120881429)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [partition:用于生成降价表的小型库](https://download.csdn.net/download/weixin_42157166/15247758)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文