long updateTableParam(Table table, String key, String expectedValue, String newValue) {
    String statement = TxnUtils.createUpdatePreparedStmt(
        "\"TABLE_PARAMS\"",
        ImmutableList.of("\"PARAM_VALUE\""),
        ImmutableList.of("\"TBL_ID\"", "\"PARAM_KEY\"", dbType.toVarChar("\"PARAM_VALUE\"")));
    Query query = pm.newQuery("javax.jdo.query.SQL", statement);
    return (long) query.executeWithArray(newValue, table.getId(), key, expectedValue);
  }
Checks if the column descriptors still has references for other SD-s. If not, then removes
them. Should be called with the list short enough to not trip up Oracle/etc.
@param columnDescriptorIdList The column identifiers
@throws MetaException If there is an SQL exception during the execution it converted to
MetaException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java