<?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: Load data to external table using date field as partitioned in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203904#M62653</link>
    <description>&lt;P&gt;Perfect answer!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2017 16:48:05 GMT</pubDate>
    <dc:creator>sagar_girish</dc:creator>
    <dc:date>2017-06-10T16:48:05Z</dc:date>
    <item>
      <title>Load data to external table using date field as partitioned</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203902#M62651</link>
      <description>&lt;P&gt;I have data having date fields "yyyymmddhhmmss".&lt;/P&gt;&lt;P&gt;I would like to load this data to extrnal table but with a formatted date field "yyyymmdd" using hive.&lt;/P&gt;&lt;P&gt;can someone help please.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 17:41:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203902#M62651</guid>
      <dc:creator>das_dineshk</dc:creator>
      <dc:date>2017-06-09T17:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to external table using date field as partitioned</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203903#M62652</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/14978/dasdineshk.html" nodeid="14978"&gt;@Dinesh Das&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you load your data as a String initially into a staging table, you can use the unix_timestamp() function to get easy date formatting:&lt;/P&gt;&lt;P&gt;select from_unixtime(unix_timestamp(origDateColumn ,'yyyyMMddhhmmss'), 'yyyyMMdd') from StagingTable&lt;/P&gt;&lt;P&gt;Alternatively, you can create a custom UDF to handle it for you.&lt;/P&gt;&lt;P&gt;As always, if you find this post useful, please "Accept" the answer.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 05:29:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203903#M62652</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-06-10T05:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to external table using date field as partitioned</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203904#M62653</link>
      <description>&lt;P&gt;Perfect answer!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 16:48:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-data-to-external-table-using-date-field-as-partitioned/m-p/203904#M62653</guid>
      <dc:creator>sagar_girish</dc:creator>
      <dc:date>2017-06-10T16:48:05Z</dc:date>
    </item>
  </channel>
</rss>

