mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 06:51:49 +08:00
SQOOP-3134
Change-Id: Iddce5d0eae6fcbe81be62318774b6f493b0d89e5
This commit is contained in:
parent
0216f7fbb7
commit
83d40868c8
@ -104,7 +104,7 @@ public Schema generate(String schemaNameOverride) throws IOException {
|
||||
}
|
||||
|
||||
TableClassName tableClassName = new TableClassName(options);
|
||||
String shortClassName = tableName == null ? DEFAULT_SCHEMA_NAME : tableClassName.getShortClassForTable(tableName);
|
||||
String shortClassName = (tableName == null && options.getClassName() == null) ? DEFAULT_SCHEMA_NAME : tableClassName.getShortClassForTable(tableName);
|
||||
String avroTableName = (tableName == null ? TableClassName.QUERY_RESULT : tableName);
|
||||
String avroName = schemaNameOverride != null ? schemaNameOverride :
|
||||
(shortClassName == null ? avroTableName : shortClassName);
|
||||
|
Loading…
Reference in New Issue
Block a user