deniskuzZ commented on code in PR #6379:
URL: https://github.com/apache/hive/pull/6379#discussion_r3001391939
##########
storage-api/src/java/org/apache/hadoop/hive/common/io/CacheTag.java:
##########
@@ -134,20 +141,20 @@ public static final CacheTag
createParentCacheTag(CacheTag tag) {
}
return new MultiPartitionCacheTag(multiPartitionCacheTag.tableName,
subList);
} else {
- return new SinglePartitionCacheTag(multiPartitionCacheTag.tableName,
- multiPartitionCacheTag.partitionDesc[0]);
+ return new SinglePartitionCacheTag(
+ multiPartitionCacheTag.tableName,
multiPartitionCacheTag.partitionDesc[0]);
}
}
if (tag instanceof SinglePartitionCacheTag) {
return new TableCacheTag(tag.tableName);
} else {
- // DB level
- int ix = tag.tableName.indexOf(".");
- if (ix <= 0) {
+ int lastSeparator = tag.tableName.lastIndexOf('.');
Review Comment:
you can simple check split size
--
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]