abstractdog commented on code in PR #6344:
URL: https://github.com/apache/hive/pull/6344#discussion_r2883949690
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java:
##########
@@ -533,9 +533,9 @@ private void handleSampling(Context context, MapWork mWork,
JobConf job)
String alias = mWork.getAliases().get(0);
Operator<?> topOp = mWork.getAliasToWork().get(alias);
- PartitionDesc partDesc = mWork.getAliasToPartnInfo().get(alias);
+ PartitionDesc partDesc = mWork.getPartitionDesc(alias);
- ArrayList<PartitionDesc> parts = mWork.getPartitionDescs();
+ List<PartitionDesc> parts = new ArrayList<>(mWork.getPartitionDescs());
Review Comment:
the new implementation returns a `Collections.unmodifiableCollection`, so I
believe wrapping into a new ArrayList is not needed
--
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]