<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Sqoop: What happens if both the --query and --columns parameters are present in the Sqoop command? Will one override the other? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-What-happens-if-both-the-query-and-columns-parameters/m-p/169467#M45638</link>
    <description />
    <pubDate>Wed, 09 Nov 2016 01:43:49 GMT</pubDate>
    <dc:creator>mark_poscablo</dc:creator>
    <dc:date>2016-11-09T01:43:49Z</dc:date>
    <item>
      <title>Sqoop: What happens if both the --query and --columns parameters are present in the Sqoop command? Will one override the other?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-What-happens-if-both-the-query-and-columns-parameters/m-p/169467#M45638</link>
      <description />
      <pubDate>Wed, 09 Nov 2016 01:43:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-What-happens-if-both-the-query-and-columns-parameters/m-p/169467#M45638</guid>
      <dc:creator>mark_poscablo</dc:creator>
      <dc:date>2016-11-09T01:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: What happens if both the --query and --columns parameters are present in the Sqoop command? Will one override the other?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-What-happens-if-both-the-query-and-columns-parameters/m-p/169468#M45639</link>
      <description>&lt;P&gt;As with all "interesting" questions like this, the best answer is to try it and see for yourself.  My hypothesis was that sqoop would report these directives are incompatible with each other and I was glad to see that was what happened when I gave it a try myself.&lt;/P&gt;&lt;PRE&gt;[root@sandbox Lab3.1]# sqoop import --connect jdbc:mysql://sandbox/test?user=root --table salaries --columns gender,age --query "select * from salaries s where s.salary &amp;gt; 90000.00 and \$CONDITIONS" --split-by gender -m 2 --target-dir willItWork
16/11/11 08:22:34 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.3.2.0-2950
Cannot specify --query and --table together.
Try --help for usage instructions.
[root@sandbox Lab3.1]#&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Nov 2016 21:25:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-What-happens-if-both-the-query-and-columns-parameters/m-p/169468#M45639</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2016-11-11T21:25:31Z</dc:date>
    </item>
  </channel>
</rss>

