-- presto 语法
select max(element_at(split("$path",'/'),9)) AS part from table_name ;

-- hive 语法
show PARTITION table_name

hive 语法参考官网:https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL

presto 参考:https://www.thinbug.com/q/42990051

防止链接失效 截图 :

 

 

 

presto 获取hive 表最大分区

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2021-07-29
  • 2021-10-25
相关资源
相似解决方案