The partition spec parsing doesn't do any actual real evaluation of the values in the partition spec, instead just taking the text value of the ASTNode representing the partition value. This works fine for string/numeric literals (expression tree below):
(TOK_PARTVAL region 99)
But not for Date literals which are of form DATE 'yyyy-mm-dd' (expression tree below:
In this case the parser/analyzer uses "TOK_DATELITERAL" as the partition column value, when it should really get value of the child of the DATELITERAL token.