@Test public void testLoadTableFromLocation() throws IOException { AssertHelpers.assertThrows( "Should complain about table location not set", IllegalArgumentException.class, "location not set", () -> Catalogs.loadTable(conf)); HadoopTables tables = new HadoopTables(); Table hadoopTable = tables.create(SCHEMA, temp.newFolder("hadoop_tables").toString()); conf.set(InputFormatConfig.TABLE_LOCATION, hadoopTable.location()); Assert.assertEquals(hadoopTable.location(), Catalogs.loadTable(conf).location()); }
public static Table loadTable(Configuration conf) { return loadTable(conf, conf.get(InputFormatConfig.TABLE_IDENTIFIER), conf.get(InputFormatConfig.TABLE_LOCATION)); }
Catalogs { public static Table loadTable(Configuration conf) { return loadTable(conf, conf.get(InputFormatConfig.TABLE_IDENTIFIER), conf.get(InputFormatConfig.TABLE_LOCATION)); } }
Catalogs { public static Table loadTable(Configuration conf) { return loadTable(conf, conf.get(InputFormatConfig.TABLE_IDENTIFIER), conf.get(InputFormatConfig.TABLE_LOCATION)); } private  Catalogs(); }
Catalogs { public static Table loadTable(Configuration conf) { return loadTable(conf, conf.get(InputFormatConfig.TABLE_IDENTIFIER), conf.get(InputFormatConfig.TABLE_LOCATION)); } private  Catalogs(); static Table loadTable(Configuration conf); static Table loadTable(Configuration conf, Properties props); }
Catalogs { public static Table loadTable(Configuration conf) { return loadTable(conf, conf.get(InputFormatConfig.TABLE_IDENTIFIER), conf.get(InputFormatConfig.TABLE_LOCATION)); } private  Catalogs(); static Table loadTable(Configuration conf); static Table loadTable(Configuration conf, Properties props);  }