sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject sqoop git commit: SQOOP-2017: Print out loaded columns and their type in verbose mode
Date Tue, 20 Jan 2015 19:28:23 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk c32010f44 -> 41d8ca272


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

(Jarek Jarcec Cecho via Abraham Elmahrek)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/41d8ca27
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/41d8ca27
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/41d8ca27

Branch: refs/heads/trunk
Commit: 41d8ca2721a86d7f99ee4e39d94b8762967c756a
Parents: c32010f
Author: Abraham Elmahrek <abe@apache.org>
Authored: Sun Jan 18 21:08:06 2015 -0800
Committer: Abraham Elmahrek <abe@apache.org>
Committed: Mon Jan 19 19:54:35 2015 -0800

----------------------------------------------------------------------
 src/java/org/apache/sqoop/manager/SqlManager.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/41d8ca27/src/java/org/apache/sqoop/manager/SqlManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/manager/SqlManager.java b/src/java/org/apache/sqoop/manager/SqlManager.java
index 5be82e3..c81f170 100644
--- a/src/java/org/apache/sqoop/manager/SqlManager.java
+++ b/src/java/org/apache/sqoop/manager/SqlManager.java
@@ -150,6 +150,7 @@ public abstract class SqlManager
           }
         }
         columns.add(colName);
+        LOG.debug("Found column " + colName);
       }
       return columns.toArray(new String[0]);
     } catch (SQLException sqlException) {
@@ -300,6 +301,7 @@ public abstract class SqlManager
         info.add(precision);
         info.add(scale);
         colInfo.put(colName, info);
+        LOG.debug("Found column " + colName + " of type " + info);
       }
 
       return colInfo;
@@ -358,6 +360,7 @@ public abstract class SqlManager
         }
 
         colTypeNames.put(colName, colTypeName);
+        LOG.debug("Found column " + colName + " of type " + colTypeName);
       }
 
       return colTypeNames;


Mime
View raw message