mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 04:11:44 +08:00
Fix SQOOP-1946: This issue occurred when using --query, the ConnManager and InputFormat of ImportJobContext not set to Oracle ones.
This commit is contained in:
parent
875e431af1
commit
9ab23a7e27
@ -455,6 +455,15 @@ public void importTable(
|
||||
super.importTable(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void importQuery(com.cloudera.sqoop.manager.ImportJobContext context)
|
||||
throws IOException, ImportException {
|
||||
context.setConnManager(this);
|
||||
// Specify the Oracle-specific DBInputFormat for import.
|
||||
context.setInputFormat(OracleDataDrivenDBInputFormat.class);
|
||||
super.importQuery(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export data stored in HDFS into a table in a database.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user