[
https://issues.apache.org/jira/browse/HIVE-24738?focusedWorklogId=556313&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-556313
]
ASF GitHub Bot logged work on HIVE-24738:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Feb/21 12:53
Start Date: 23/Feb/21 12:53
Worklog Time Spent: 10m
Work Description: pvargacl commented on a change in pull request #1971:
URL: https://github.com/apache/hive/pull/1971#discussion_r581010051
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
##########
@@ -2862,29 +2862,29 @@ public boolean skipProcessing(Task<?> task) {
* corresponding to these dynamic partitions.
*/
public static Map<Path, PartitionDetails> getFullDPSpecs(Configuration conf,
DynamicPartitionCtx dpCtx,
- Set<String> dynamicPartitionSpecs) throws HiveException {
+ Map<String, List<Path>> dynamicPartitionSpecs) throws HiveException {
try {
Path loadPath = dpCtx.getRootPath();
FileSystem fs = loadPath.getFileSystem(conf);
int numDPCols = dpCtx.getNumDPCols();
- List<Path> allPartition = new ArrayList<>();
+ Map<Path, List<Path>> allPartition = new HashMap<>();
if (dynamicPartitionSpecs != null) {
- for (String partSpec : dynamicPartitionSpecs) {
- allPartition.add(new Path(loadPath, partSpec));
+ for (Map.Entry<String, List<Path>> partSpec :
dynamicPartitionSpecs.entrySet()) {
+ allPartition.put(new Path(loadPath, partSpec.getKey()),
partSpec.getValue());
}
} else {
List<FileStatus> status =
HiveStatsUtils.getFileStatusRecurse(loadPath, numDPCols, fs);
for (FileStatus fileStatus : status) {
- allPartition.add(fileStatus.getPath());
+ allPartition.put(fileStatus.getPath(), null);
Review comment:
done
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 556313)
Time Spent: 2h (was: 1h 50m)
> Reuse committed filelist from directInsert manifest during loadPartition
> ------------------------------------------------------------------------
>
> Key: HIVE-24738
> URL: https://issues.apache.org/jira/browse/HIVE-24738
> Project: Hive
> Issue Type: Sub-task
> Reporter: Peter Varga
> Assignee: Peter Varga
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
> This way the costly FileSystem listing can be avoided
--
This message was sent by Atlassian Jira
(v8.3.4#803005)