5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 04:29:59 +08:00

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
This commit is contained in:
Bilung Lee 2011-10-18 01:28:03 +00:00
parent c39bf2a14e
commit 5cf46c24cd

View File

@ -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