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 and dengzhhu653 committed Mar 7, 2024
1 parent 1dca89e commit 7cf28ce
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 7cf28ce

Please sign in to comment.