<?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 Re: How do I split columns on table that has varchar datatypes only? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192343#M76327</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/66186/dcedielunesa.html" nodeid="66186"&gt;@Christian Lunesa&lt;/A&gt;&lt;P&gt;If the answer helped solving your query, please mark the answer as accepted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 07:32:20 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-27T07:32:20Z</dc:date>
    <item>
      <title>How do I split columns on table that has varchar datatypes only?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192341#M76325</link>
      <description />
      <pubDate>Sat, 24 Mar 2018 09:39:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192341#M76325</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-03-24T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split columns on table that has varchar datatypes only?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192342#M76326</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/66186/dcedielunesa.html" nodeid="66186"&gt;@Christian Lunesa&lt;/A&gt;&lt;P&gt;If you are talking about a Sqoop Import, that's the only tag with your question :), it is always highly recommended to use an Integral column as split-by. But since you have only string/varchar columns in your data source, you can try following options based on the data that you have.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;add surrogate int PK and use it also as a split or&lt;/LI&gt;&lt;LI&gt;split your data manually using a custom query with &lt;CODE&gt;WHERE&lt;/CODE&gt; clause and run sqoop few times with num-mappers=1, or&lt;/LI&gt;&lt;LI&gt;apply some &lt;STRONG&gt;deterministic Integer non-aggregation&lt;/STRONG&gt; function to you varchar column, for example cast(substr(...) as int) as split-column.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let know if you need any other help!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 05:10:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192342#M76326</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-25T05:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split columns on table that has varchar datatypes only?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192343#M76327</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/66186/dcedielunesa.html" nodeid="66186"&gt;@Christian Lunesa&lt;/A&gt;&lt;P&gt;If the answer helped solving your query, please mark the answer as accepted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 07:32:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192343#M76327</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-27T07:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split columns on table that has varchar datatypes only?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192344#M76328</link>
      <description>&lt;P&gt;thank you for answering my questions sir, do you mean I have to alter the table in mysql  when adding surrogate int PK?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 16:06:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192344#M76328</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-03-27T16:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split columns on table that has varchar datatypes only?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192345#M76329</link>
      <description>&lt;P&gt;I want to use the third option on the split-by but i am not seeing example of how to pass in that value. I have tried with single quote 'cast(id as unsigned)' and it throws error saying column not found on the sqoop run.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 11:04:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-split-columns-on-table-that-has-varchar-datatypes/m-p/192345#M76329</guid>
      <dc:creator>elkrish</dc:creator>
      <dc:date>2018-07-08T11:04:02Z</dc:date>
    </item>
  </channel>
</rss>

