5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 07:11:02 +08:00

SQOOP-2017: Print out loaded columns and their type in verbose mode

(Jarek Jarcec Cecho via Abraham Elmahrek)
This commit is contained in:
Abraham Elmahrek 2015-01-18 21:08:06 -08:00
parent c32010f440
commit 41d8ca2721

View File

@ -150,6 +150,7 @@ public String[] getColumnNamesForRawQuery(String stmt) {
}
}
columns.add(colName);
LOG.debug("Found column " + colName);
}
return columns.toArray(new String[0]);
} catch (SQLException sqlException) {
@ -300,6 +301,7 @@ protected Map<String, List<Integer>> getColumnInfoForRawQuery(String stmt) {
info.add(precision);
info.add(scale);
colInfo.put(colName, info);
LOG.debug("Found column " + colName + " of type " + info);
}
return colInfo;
@ -358,6 +360,7 @@ protected Map<String, String> getColumnTypeNamesForRawQuery(String stmt) {
}
colTypeNames.put(colName, colTypeName);
LOG.debug("Found column " + colName + " of type " + colTypeName);
}
return colTypeNames;