<?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 Don't we have a way to select normal column along with UDTF in hive?? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99965#M13020</link>
    <description>&lt;P&gt;I would like to select one normal datatype column(primitive) column along with UDTF as follows.But it is throwing error like&lt;/P&gt;&lt;P&gt;SemanticException [Error 10081]: UDTF's are not supported outside the SELECT clause, nor nested in expressions&lt;/P&gt;&lt;P&gt;I understood the problem.Don't we have any way to do this.&lt;/P&gt;&lt;P&gt;Query is :  select col1,explode(split(col2,'\\s')) from table_name;&lt;/P&gt;&lt;P&gt;assume col2 is int type and col2 is string.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2015 16:48:08 GMT</pubDate>
    <dc:creator>bsuresh</dc:creator>
    <dc:date>2015-12-18T16:48:08Z</dc:date>
    <item>
      <title>Don't we have a way to select normal column along with UDTF in hive??</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99965#M13020</link>
      <description>&lt;P&gt;I would like to select one normal datatype column(primitive) column along with UDTF as follows.But it is throwing error like&lt;/P&gt;&lt;P&gt;SemanticException [Error 10081]: UDTF's are not supported outside the SELECT clause, nor nested in expressions&lt;/P&gt;&lt;P&gt;I understood the problem.Don't we have any way to do this.&lt;/P&gt;&lt;P&gt;Query is :  select col1,explode(split(col2,'\\s')) from table_name;&lt;/P&gt;&lt;P&gt;assume col2 is int type and col2 is string.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 16:48:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99965#M13020</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2015-12-18T16:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Don't we have a way to select normal column along with UDTF in hive??</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99966#M13021</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1146/bsuresh.html" nodeid="1146"&gt;@Suresh Bonam&lt;/A&gt;&lt;P&gt;You have to use LATERAL VIEW to do it. &lt;/P&gt;&lt;P&gt;See this:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+LateralView"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+LateralView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And an example here:&lt;/P&gt;&lt;PRE&gt;  select s.code, exp.splitted
  from sample_07 s
  lateral view explode(split('asdfa adsfa asdaf asdfad','\\s')) exp as splitted
&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2015 18:25:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99966#M13021</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-18T18:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Don't we have a way to select normal column along with UDTF in hive??</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99967#M13022</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/238/gbraccialli.html"&gt;Guilherme Braccialli&lt;/A&gt; thank you.its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 18:35:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Don-t-we-have-a-way-to-select-normal-column-along-with-UDTF/m-p/99967#M13022</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2015-12-18T18:35:09Z</dc:date>
    </item>
  </channel>
</rss>

