spark读取hive表,获取分区字段

spark.table(hiveTable).sparkSession.catalog.listColumns(hiveTable)
.filter(x => x.isPartition).map(_.name)

猜你喜欢

转载自blog.csdn.net/weixin_43015677/article/details/130940673
今日推荐