deniskuzZ opened a new pull request, #6978: URL: https://github.com/apache/hive/pull/6978
### What changes were proposed in this pull request? `MapredParquetInputFormat.listStatus` lists each input path with one `listLocatedStatus` call, on `hive.compute.splits.num.threads` threads. It keeps the result of `FileInputFormat.listStatus`: hidden-file and job filters, the recursive walk, subdirectories as entries when not recursive, and `shrinkStatus`. ### Why are the changes needed? `FileInputFormat.listStatus` globs every input path before listing it. On S3A the glob's `getFileStatus` is a HEAD plus a LIST probe, so a partition directory costs three requests where its LIST alone carries the files. ORC's split generation never globs; Trino lists a partition with one ListObjectsV2. TPC-DS 10 TB q14 (12 map vertices listing date partitions at once) had a 16-20 s split-generation window per execution, with every retry-backoff sample (SDK `RetryableStage2`, S3A `Invoker`) under the glob. Cutting the listing threads from 64 to 10 left the window unchanged, so the request rate is the limit. On a 10 x r5d cluster (TPC-DS 10 TB Parquet), the time with no running task went from 83.2 to 44.1 s per 99-query pass; q75 -8.9 s, q14 -7.7 s. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? `TestMapredParquetInputFormat`: - returns the same statuses as `FileInputFormat`, recursive and not - no status call and one listing per listed path (the glob made 6 status calls for 3 paths) - removing the filter, the recursion or the fix each makes it fail -- 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]
