You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by bl...@apache.org on 2011/10/18 03:28:04 UTC

svn commit: r1185449 - /incubator/sqoop/trunk/src/docs/user/import.txt

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