<?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 to find week of the year of hive column(String) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99865#M12950</link>
    <description>&lt;P&gt;I guess,from_unixtime function has to convert bigint to "yyyy-MM-dd" not "yyyy-mm-dd".&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2015 13:33:09 GMT</pubDate>
    <dc:creator>bsuresh</dc:creator>
    <dc:date>2015-12-18T13:33:09Z</dc:date>
    <item>
      <title>How to find week of the year of hive column(String)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99863#M12948</link>
      <description>&lt;P&gt;Hi everyone, In my hive table i have values in one column are like  " Thu Dec 17 15:55:08 IST 2015 " .For this particular column i would like to find "week of the year".How can i do that one .Assume column name is survey_date and data type is string.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 18:33:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99863#M12948</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2015-12-17T18:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to find week of the year of hive column(String)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99864#M12949</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1146/bsuresh.html" nodeid="1146"&gt;@Suresh Bonam&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;select weekofyear(from_unixtime(unix_timestamp('Thu Dec 17 15:55:08 IST 2015', 'EEE MMM d HH:mm:ss Z yyyy'),'yyyy-MM-dd')) from sample_07 limit 1;


select weekofyear(from_unixtime(unix_timestamp('Thu Dec 02 15:55:08 IST 2015', 'EEE MMM d HH:mm:ss Z yyyy'),'yyyy-MM-dd')) from sample_07 limit 1;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 20:51:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99864#M12949</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-17T20:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to find week of the year of hive column(String)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99865#M12950</link>
      <description>&lt;P&gt;I guess,from_unixtime function has to convert bigint to "yyyy-MM-dd" not "yyyy-mm-dd".&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99865#M12950</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2015-12-18T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to find week of the year of hive column(String)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99866#M12951</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1146/bsuresh.html" nodeid="1146"&gt;@Suresh Bonam&lt;/A&gt; you are right. I updated the answer. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 18:19:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-find-week-of-the-year-of-hive-column-String/m-p/99866#M12951</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-18T18:19:08Z</dc:date>
    </item>
  </channel>
</rss>

