aws-glue-datacatalog-hive2-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java [1200:1253]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private void snapshotActiveConf() {
    currentMetaVars = new HashMap<String, String>(HiveConf.metaVars.length);
    for (ConfVars oneVar : HiveConf.metaVars) {
      currentMetaVars.put(oneVar.varname, conf.get(oneVar.varname, ""));
    }
  }

  @Override
  public boolean isPartitionMarkedForEvent(String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType)
      throws MetaException, NoSuchObjectException, TException, UnknownTableException, UnknownDBException,
      UnknownPartitionException, InvalidPartitionException {
    return glueMetastoreClientDelegate.isPartitionMarkedForEvent(dbName, tblName, partKVs, eventType);
  }

  @Override
  public List<String> listIndexNames(String db_name, String tbl_name, short max) throws MetaException, TException {
    // In current hive implementation, it ignores fields "max"
    // https://github.com/apache/hive/blob/rel/release-2.3.0/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3902-L3932
    List<Index> indexes = listIndexes(db_name, tbl_name, max);
    List<String> indexNames = Lists.newArrayList();
    for(Index index : indexes) {
      indexNames.add(index.getIndexName());
    }

    return indexNames;
  }

  @Override
  public List<Index> listIndexes(String db_name, String tbl_name, short max) throws NoSuchObjectException, MetaException,
        TException {
    // In current hive implementation, it ignores fields "max"
    // https://github.com/apache/hive/blob/rel/release-2.3.0/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3867-L3899
    return glueMetastoreClientDelegate.listIndexes(db_name, tbl_name);
  }

  @Override
  public List<String> listPartitionNames(String dbName, String tblName, short max)
        throws MetaException, TException {
    try {
      return listPartitionNames(dbName, tblName, null, max);
    } catch (NoSuchObjectException e) {
      // For compatibility with Hive 1.0.0
      return Collections.emptyList();
    }
  }

  @Override
  public List<String> listPartitionNames(String databaseName, String tableName,
                                         List<String> values, short max)
        throws MetaException, TException, NoSuchObjectException {
    return glueMetastoreClientDelegate.listPartitionNames(databaseName, tableName, values, max);
  }

  @Override
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-glue-datacatalog-spark-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java [1054:1107]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private void snapshotActiveConf() {
      currentMetaVars = new HashMap<String, String>(HiveConf.metaVars.length);
      for (ConfVars oneVar : HiveConf.metaVars) {
          currentMetaVars.put(oneVar.varname, conf.get(oneVar.varname, ""));
      }
  }

  @Override
  public boolean isPartitionMarkedForEvent(String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType)
      throws MetaException, NoSuchObjectException, TException, UnknownTableException, UnknownDBException,
      UnknownPartitionException, InvalidPartitionException {
    return glueMetastoreClientDelegate.isPartitionMarkedForEvent(dbName, tblName, partKVs, eventType);
  }

  @Override
  public List<String> listIndexNames(String db_name, String tbl_name, short max) throws MetaException, TException {
      // In current hive implementation, it ignores fields "max"
      // https://github.com/apache/hive/blob/rel/release-2.3.0/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3902-L3932
      List<Index> indexes = listIndexes(db_name, tbl_name, max);
      List<String> indexNames = Lists.newArrayList();
      for(Index index : indexes) {
          indexNames.add(index.getIndexName());
      }

      return indexNames;
  }

  @Override
  public List<Index> listIndexes(String db_name, String tbl_name, short max) throws NoSuchObjectException, MetaException,
        TException {
    // In current hive implementation, it ignores fields "max"
    // https://github.com/apache/hive/blob/rel/release-2.3.0/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3867-L3899
    return glueMetastoreClientDelegate.listIndexes(db_name, tbl_name);
  }

  @Override
  public List<String> listPartitionNames(String dbName, String tblName, short max)
        throws MetaException, TException {
      try {
          return listPartitionNames(dbName, tblName, null, max);
      } catch (NoSuchObjectException e) {
          // For compatibility with Hive 1.0.0
          return Collections.emptyList();
      }
  }

  @Override
  public List<String> listPartitionNames(String databaseName, String tableName,
                                         List<String> values, short max)
        throws MetaException, TException, NoSuchObjectException {
    return glueMetastoreClientDelegate.listPartitionNames(databaseName, tableName, values, max);
  }

  @Override
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



