Source:
<code>public List<Partition> get_partitions_by_names(final String dbName, final String tblName, final List<String> partNames, boolean getColStats) throws TException { String[] dbNameParts = parseDbName(dbName, conf); String parsedCatName = dbNameParts[CAT_NAME]; String parsedDbName = dbNameParts[DB_NAME]; List<Partition> ret = null; Exception ex = null; startTableFunction("get_partitions_by_names", parsedCatName, parsedDbName, tblName); try { authorizeTableForPartitionMetadata(parsedCatName, parsedDbName, tblName); fireReadTablePreEvent(parsedCatName, parsedDbName, tblName); <START> ret = getMS().getPartitionsByNames(parsedCatName, parsedDbName, tblName, partNames); <END> ret = FilterUtils.filterPartitionsIfEnabled(isServerFilterEnabled, filterHook, ret); if (getColStats) { Table table = getTable(parsedCatName, parsedDbName, tblName); for (Partition part: ret) { String partName = Warehouse.makePartName(table.getPartitionKeys(), part.getValues()); List<ColumnStatistics> partColStatsList = getMS().getPartitionColumnStatistics(parsedCatName, parsedDbName, tblName, Collections.singletonList(partName), StatsSetupConst.getColumnsHavingStats(part.getParameters())); if (partColStatsList != null && !partColStatsList.isEmpty()) { ColumnStatistics partColStats = partColStatsList.get(0); if (partColStats != null) { part.setColStats(partColStats); } } } } } catch (Exception e) { ex = e; rethrowException(e); } finally { endFunction("get_partitions_by_names", ret != null, ex, tblName); } return ret; }</code><technical_language>name instead of ret</technical_language>

Target:
public List<Partition> get_partitions_by_names(final String dbName, final String tblName, final List<String> partNames, boolean getColStats) throws TException { String[] dbNameParts = parseDbName(dbName, conf); String parsedCatName = dbNameParts[CAT_NAME]; String parsedDbName = dbNameParts[DB_NAME]; List<Partition> ret = null; Exception ex = null; boolean success = false; startTableFunction("get_partitions_by_names", parsedCatName, parsedDbName, tblName); try { getMS().openTransaction(); authorizeTableForPartitionMetadata(parsedCatName, parsedDbName, tblName); fireReadTablePreEvent(parsedCatName, parsedDbName, tblName); ret = getMS().getPartitionsByNames(parsedCatName, parsedDbName, tblName, partNames); ret = FilterUtils.filterPartitionsIfEnabled(isServerFilterEnabled, filterHook, ret); if (getColStats) { Table table = getTable(parsedCatName, parsedDbName, tblName); for (Partition part: ret) { String partName = Warehouse.makePartName(table.getPartitionKeys(), part.getValues()); List<ColumnStatistics> partColStatsList = getMS().getPartitionColumnStatistics(parsedCatName, parsedDbName, tblName, Collections.singletonList(partName), StatsSetupConst.getColumnsHavingStats(part.getParameters())); if (partColStatsList != null && !partColStatsList.isEmpty()) { ColumnStatistics partColStats = partColStatsList.get(0); if (partColStats != null) { part.setColStats(partColStats); } } } } success = getMS().commitTransaction(); } catch (Exception e) { ex = e; rethrowException(e); } finally { if (!success) { getMS().rollbackTransaction(); } endFunction("get_partitions_by_names", ret != null, ex, tblName); } return ret; }