取最后的分区

function GetLastestPartition(){
GetLastestPartition_tablename='表名'
ExecuteHQL "show partitions ${GetLastestPartition_tablename}" | tail -n 1 | cut -d'=' -f2
}

posted @ 2019-11-26 16:26  TryMyBest!  阅读(159)  评论(0编辑  收藏  举报