Review Board 1.7.22


SQOOP-901 Allow user to override hardcoded boolean strings in direct PostgreSQL connector

Review Request #9488 - Created Feb. 18, 2013 and submitted

Jarek Cecho
SQOOP-901
Reviewers
Sqoop
sqoop-trunk
I've provided extra options that will override the build-in defaults if needed.
New unit test provided.
src/docs/user/connectors.txt
Revision ff424f74b826beb4e9ea3ccd5822cbcac5ce2026 New Change
[20] 95 lines
[+20]
96
---------------------------------------------------------------------------------
96
---------------------------------------------------------------------------------
97
+\--schema <name>+                       Scheme name that sqoop should use. \
97
+\--schema <name>+                       Scheme name that sqoop should use. \
98
                                         Default is "public".
98
                                         Default is "public".
99
---------------------------------------------------------------------------------
99
---------------------------------------------------------------------------------
100

    
   
100

   

    
   
101
The direct connector (used when specified +\--direct+ parameter), offers also

    
   
102
additional extra arguments:

    
   
103

   

    
   
104
.Additional supported PostgreSQL extra arguments in direct mode:

    
   
105
[grid="all"]

    
   
106
`----------------------------------------`---------------------------------------

    
   
107
Argument                                 Description

    
   
108
---------------------------------------------------------------------------------

    
   
109
+\--boolean-true-string <str>+           String that will be used to encode \

    
   
110
                                         +true+ value of +boolean+ columns.

    
   
111
                                         Default is "TRUE".

    
   
112
+\--boolean-false-string <str>+          String that will be used to encode \

    
   
113
                                         +false+ value of +boolean+ columns.

    
   
114
                                         Default is "FALSE".

    
   
115
---------------------------------------------------------------------------------

    
   
116

   
101
Schema support
117
Schema support
102
^^^^^^^^^^^^^^
118
^^^^^^^^^^^^^^
103

    
   
119

   
104
If you need to work with table that is located in schema other than default one,
120
If you need to work with table that is located in schema other than default one,
105
you need to specify extra argument +\--schema+. Custom schemas are supported for
121
you need to specify extra argument +\--schema+. Custom schemas are supported for
[+20] [20] 124 lines
src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java
Revision a05bf606dbc61cfab4fc977fa1f51feb59c5e446 New Change
 
src/java/org/apache/sqoop/manager/PostgresqlManager.java
Revision facdc742f9bc2470b89b5bcac8b210bef84d7349 New Change
 
src/test/com/cloudera/sqoop/manager/PostgresqlImportTest.java
Revision ee00c4124b0a24fdc99142005be2f0b2d404d030 New Change
 
  1. src/docs/user/connectors.txt: Loading...
  2. src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java: Loading...
  3. src/java/org/apache/sqoop/manager/PostgresqlManager.java: Loading...
  4. src/test/com/cloudera/sqoop/manager/PostgresqlImportTest.java: Loading...