deniskuzZ commented on code in PR #5645:
URL: https://github.com/apache/hive/pull/5645#discussion_r1965436151
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java:
##########
@@ -598,7 +598,26 @@ public static Map<Integer, List<ExprNodeGenericFuncDesc>>
getFullPartitionSpecs(
for (int i = 0; i < partSpecTree.getChildCount(); ++i) {
CommonTree partSpecSingleKey = (CommonTree) partSpecTree.getChild(i);
assert (partSpecSingleKey.getType() == HiveParser.TOK_PARTVAL);
- String key =
stripIdentifierQuotes(partSpecSingleKey.getChild(0).getText()).toLowerCase();
+ String columnName;
+ String key;
+ if (partSpecSingleKey.getChild(0).getType() ==
HiveParser.TOK_FUNCTION) {
+ int childCount = partSpecSingleKey.getChild(0).getChildCount();
+ if (childCount == 2) { // Case with type and key
Review Comment:
what does it mean `Case with type and key`. case with unary function?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]