@Test public void testValidateSql() throws Exception { explorer.validateSQL("select 1"); validateSQLInvalidEx.expect(Exception.class); explorer.validateSQL("select"); }
@Override public void validateSQL(String query) throws Exception { dataSource.testSql(dataSource.convertSql(query)); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public void validateSQL(String query) throws Exception { dataSource.testSql(dataSource.convertSql(query)); } }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public void validateSQL(String query) throws Exception { dataSource.testSql(dataSource.convertSql(query)); } JdbcExplorer(JdbcConnector dataSource); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public void validateSQL(String query) throws Exception { dataSource.testSql(dataSource.convertSql(query)); } JdbcExplorer(JdbcConnector dataSource); @Override List<String> listDatabases(); @Override List<String> listTables(String schema); @Override Pair<TableDesc, TableExtDesc> loadTableMetadata(String database, String table, String prj); @Override void createSampleDatabase(String database); @Override void loadSampleData(String tableName, String tmpDataDir); @Override void createSampleTable(TableDesc table); @Override void createWrapperView(String origTableName, String viewName); @Override List<String> getRelatedKylinResources(TableDesc table); @Override ColumnDesc[] evalQueryMetadata(String query); @Override void validateSQL(String query); }
JdbcExplorer implements ISourceMetadataExplorer, ISampleDataDeployer { @Override public void validateSQL(String query) throws Exception { dataSource.testSql(dataSource.convertSql(query)); } JdbcExplorer(JdbcConnector dataSource); @Override List<String> listDatabases(); @Override List<String> listTables(String schema); @Override Pair<TableDesc, TableExtDesc> loadTableMetadata(String database, String table, String prj); @Override void createSampleDatabase(String database); @Override void loadSampleData(String tableName, String tmpDataDir); @Override void createSampleTable(TableDesc table); @Override void createWrapperView(String origTableName, String viewName); @Override List<String> getRelatedKylinResources(TableDesc table); @Override ColumnDesc[] evalQueryMetadata(String query); @Override void validateSQL(String query);  }