取最后的分区

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

原文地址:https://www.cnblogs.com/lidapengwww/p/11936470.html