Skip to content

Commit

Permalink
HIVE-27780: Implement direct SQL for get_all_functions - ADDENDUM (ap…
Browse files Browse the repository at this point in the history
…ache#4971). (zhangbutao,  reviewed by Ayush Saxena)
  • Loading branch information
zhangbutao authored Dec 26, 2023
1 parent 70ee442 commit bd16e00
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3143,6 +3143,9 @@ public Map<String, Map<String, String>> updatePartitionColumnStatisticsBatch(

public List<Function> getFunctions(String catName) throws MetaException {
List<Long> funcIds = getFunctionIds(catName);
if (funcIds.isEmpty()) {
return Collections.emptyList(); // no functions, bail early.
}
// Get full objects. For Oracle/etc. do it in batches.
return Batchable.runBatched(batchSize, funcIds, new Batchable<Long, Function>() {
@Override
Expand Down

0 comments on commit bd16e00

Please sign in to comment.