大家好,又见面了,我是你们的朋友全栈君。...前言
查询的分区情况
程序
Jupyter
# 导入信息
from pyspark.sql import SparkSession, Row
from pyspark import SQLContext...from pyspark.sql.functions import udf, col, explode, collect_set, get_json_object, concat_ws, split...from pyspark.sql.types import StringType, IntegerType, StructType, StructField, ArrayType, MapType....getOrCreate()
# 查询语句
spark.sql(""" show partitions 表名 """).show()
Hive中
# 显示表分区:
hive> show