/** * Drops Serde-s. Should be called with the list short enough to not trip up Oracle/etc. * @param serdeIdList The serde identifiers to drop * @throws MetaException If there is an SQL exception during the execution it converted to * MetaException */ private void dropSerdes(List<Object> serdeIdList) throws MetaException { String queryText; if (serdeIdList.isEmpty()) { return; } String serdeIds = getIdListForIn(serdeIdList); try { // Drop the serde params queryText = "delete from " + SERDE_PARAMS + " where \"SERDE_ID\" in (" + serdeIds + ")"; executeNoResult(queryText); Deadline.checkTimeout(); // Drop the serdes queryText = "delete from " + SERDES + " where \"SERDE_ID\" in (" + serdeIds + ")"; executeNoResult(queryText); } catch (SQLException sqlException) { LOG.warn("SQL error executing query while dropping serde.", sqlException); throw new MetaException("Encountered error while dropping serde."); } }
String colIds = getIdListForIn(columnDescriptorIdList); String danglingCDIds = getIdListForIn(danglingColumnDescriptorIdList);
String partIds = getIdListForIn(partIdList); String queryText = "select " + PARTITIONS + ".\"PART_ID\", " + SDS + ".\"SD_ID\", " + SDS + ".\"CD_ID\"," + " "
String partitionIds = getIdListForIn(partitionIdList);
String sdIds = getIdListForIn(storageDescriptorIdList); String skewedStringListIds = getIdListForIn(skewedStringListIdList);