partition.setConditions("16.666666666666667 <= DCOL AND DCOL <= 50.0");
extractor.run(context, connConf, jobConf, partition, writer);
}
public void testSubquery() throws Exception {
MutableContext context = new MutableMapContext();
context.setString(
GenericJdbcConnectorConstants.CONNECTOR_JDBC_DRIVER,
GenericJdbcTestConstants.DRIVER);
context.setString(
GenericJdbcConnectorConstants.CONNECTOR_JDBC_URL,
GenericJdbcTestConstants.URL);
context.setString(GenericJdbcConnectorConstants.CONNECTOR_JDBC_DATA_SQL,
"SELECT SQOOP_SUBQUERY_ALIAS.ICOL,SQOOP_SUBQUERY_ALIAS.VCOL FROM "
+ "(SELECT * FROM " + executor.delimitIdentifier(tableName)
+ " WHERE ${CONDITIONS}) SQOOP_SUBQUERY_ALIAS");
ConnectionConfiguration connConf = new ConnectionConfiguration();