@Test public void testAlterNamespaceMeta() throws IOException { Configuration conf = new Configuration(); String warehousePath = temp.newFolder().getAbsolutePath(); HadoopCatalog catalog = new HadoopCatalog(conf, warehousePath); AssertHelpers.assertThrows("Should fail to change namespace", UnsupportedOperationException.class, "Cannot set namespace properties db.db2.ns2 : setProperties is not supported", () -> { catalog.setProperties(Namespace.of("db", "db2", "ns2"), ImmutableMap.of("property", "test")); }); }
@Override public boolean setProperties(Namespace namespace, Map<String, String> properties) { throw new UnsupportedOperationException( "Cannot set namespace properties " + namespace + " : setProperties is not supported"); }
HadoopCatalog extends BaseMetastoreCatalog implements Closeable, SupportsNamespaces { @Override public boolean setProperties(Namespace namespace, Map<String, String> properties) { throw new UnsupportedOperationException( "Cannot set namespace properties " + namespace + " : setProperties is not supported"); } }
HadoopCatalog extends BaseMetastoreCatalog implements Closeable, SupportsNamespaces { @Override public boolean setProperties(Namespace namespace, Map<String, String> properties) { throw new UnsupportedOperationException( "Cannot set namespace properties " + namespace + " : setProperties is not supported"); } HadoopCatalog(String name, Configuration conf, String warehouseLocation);  HadoopCatalog(Configuration conf, String warehouseLocation);  HadoopCatalog(Configuration conf); }
HadoopCatalog extends BaseMetastoreCatalog implements Closeable, SupportsNamespaces { @Override public boolean setProperties(Namespace namespace, Map<String, String> properties) { throw new UnsupportedOperationException( "Cannot set namespace properties " + namespace + " : setProperties is not supported"); } HadoopCatalog(String name, Configuration conf, String warehouseLocation);  HadoopCatalog(Configuration conf, String warehouseLocation);  HadoopCatalog(Configuration conf); @Override List<TableIdentifier> listTables(Namespace namespace); @Override Table createTable(
      TableIdentifier identifier, Schema schema, PartitionSpec spec, String location, Map<String, String> properties); @Override boolean dropTable(TableIdentifier identifier, boolean purge); @Override void renameTable(TableIdentifier from, TableIdentifier to); @Override void createNamespace(Namespace namespace, Map<String, String> meta); @Override List<Namespace> listNamespaces(Namespace namespace); @Override boolean dropNamespace(Namespace namespace); @Override boolean setProperties(Namespace namespace,  Map<String, String> properties); @Override boolean removeProperties(Namespace namespace,  Set<String> properties); @Override Map<String, String> loadNamespaceMetadata(Namespace namespace); @Override void close(); }
HadoopCatalog extends BaseMetastoreCatalog implements Closeable, SupportsNamespaces { @Override public boolean setProperties(Namespace namespace, Map<String, String> properties) { throw new UnsupportedOperationException( "Cannot set namespace properties " + namespace + " : setProperties is not supported"); } HadoopCatalog(String name, Configuration conf, String warehouseLocation);  HadoopCatalog(Configuration conf, String warehouseLocation);  HadoopCatalog(Configuration conf); @Override List<TableIdentifier> listTables(Namespace namespace); @Override Table createTable(
      TableIdentifier identifier, Schema schema, PartitionSpec spec, String location, Map<String, String> properties); @Override boolean dropTable(TableIdentifier identifier, boolean purge); @Override void renameTable(TableIdentifier from, TableIdentifier to); @Override void createNamespace(Namespace namespace, Map<String, String> meta); @Override List<Namespace> listNamespaces(Namespace namespace); @Override boolean dropNamespace(Namespace namespace); @Override boolean setProperties(Namespace namespace,  Map<String, String> properties); @Override boolean removeProperties(Namespace namespace,  Set<String> properties); @Override Map<String, String> loadNamespaceMetadata(Namespace namespace); @Override void close();  }