sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1185449 - /incubator/sqoop/trunk/src/docs/user/import.txt
Date Tue, 18 Oct 2011 01:28:04 GMT
Author: blee
Date: Tue Oct 18 01:28:03 2011
New Revision: 1185449

URL: http://svn.apache.org/viewvc?rev=1185449&view=rev
Log:
SQOOP-361 [Docs] $CONDITIONS must be escaped to not allow shells to replace it.

(Harsh J via Bilung Lee)

Modified:
    incubator/sqoop/trunk/src/docs/user/import.txt

Modified: incubator/sqoop/trunk/src/docs/user/import.txt
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/src/docs/user/import.txt?rev=1185449&r1=1185448&r2=1185449&view=diff
==============================================================================
--- incubator/sqoop/trunk/src/docs/user/import.txt (original)
+++ incubator/sqoop/trunk/src/docs/user/import.txt Tue Oct 18 01:28:03 2011
@@ -153,6 +153,12 @@ $ sqoop import \
   -m 1 --target-dir /user/foo/joinresults
 ----
 
+NOTE: If you are issuing the query wrapped with double quotes ("),
+you will have to use +\$CONDITIONS+ instead of just +$CONDITIONS+
+to disallow your shell from treating it as a shell variable.
+For example, a double quoted query may look like:
++"SELECT * FROM x WHERE a=\'foo' AND \$CONDITIONS"+
+
 NOTE: The facility of using free-form query in the current version of Sqoop
 is limited to simple queries where there are no ambiguous projections and
 no +OR+ conditions in the +WHERE+ clause. Use of complex queries such as



Mime
View raw message