From 5cf46c24cd66accb089f6df18677ded1824f7cdc Mon Sep 17 00:00:00 2001 From: Bilung Lee Date: Tue, 18 Oct 2011 01:28:03 +0000 Subject: [PATCH] SQOOP-361 [Docs] $CONDITIONS must be escaped to not allow shells to replace it. (Harsh J via Bilung Lee) git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1185449 13f79535-47bb-0310-9956-ffa450edef68 --- src/docs/user/import.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/docs/user/import.txt b/src/docs/user/import.txt index c05b4ca2..4988131a 100644 --- a/src/docs/user/import.txt +++ b/src/docs/user/import.txt @@ -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