<?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>topic Re: Reading and Parsing Hive Array complex data types in to a sas data table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/333631#M75215</link>
    <description>&lt;P&gt;JSON parsing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is proc groovy cool?&amp;nbsp; If so, see &lt;A href="http://www.sascommunity.org/planet/blog/category/groovy/" target="_self"&gt;Hello Groovy in SAS 9.3&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 23:49:48 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2017-02-16T23:49:48Z</dc:date>
    <item>
      <title>Reading and Parsing Hive Array complex data types in to a sas data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/208233#M38724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to read in a set of data from a Hive table which contains a complex data type (array) - effectively a JSON type structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4m3 and I can definitely retrieve the data using a simple libname statement but it arrives as a string with all the curly brackets and separators.&amp;nbsp; I have an a Hive query that retrieves the data directly through Hive, but I'm having trouble making that query work through an explicit sql passthrough in SAS.&amp;nbsp; it's very annoying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Hive query looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a.var1, b.col.var1, c.col, d.col&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;taba a&lt;/P&gt;&lt;P&gt;lateral view explode(tabb) b&lt;/P&gt;&lt;P&gt;lateral view explode(b.value.var_x) c&lt;/P&gt;&lt;P&gt;lateral view explode(b.value.var_y) d&lt;/P&gt;&lt;P&gt;lateral view explode(b.value.var_z) e&lt;/P&gt;&lt;P&gt;where a.var1 = 'xyz123' limit 10;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I wrap this in a proc sql wrapper for an hadoop connection (explicit passthrough) I get return code 2 from map reduce.&amp;nbsp; The proc sql wrapper works for simple queries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any thoughts comments or questions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 20:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/208233#M38724</guid>
      <dc:creator>to_the_point</dc:creator>
      <dc:date>2015-08-26T20:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading and Parsing Hive Array complex data types in to a sas data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/333619#M75212</link>
      <description>&lt;P&gt;&amp;nbsp;Hi, I'm having the same chanllenges... Would you please help if you figure it out already? Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 23:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/333619#M75212</guid>
      <dc:creator>liucheng8611</dc:creator>
      <dc:date>2017-02-16T23:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading and Parsing Hive Array complex data types in to a sas data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/333631#M75215</link>
      <description>&lt;P&gt;JSON parsing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is proc groovy cool?&amp;nbsp; If so, see &lt;A href="http://www.sascommunity.org/planet/blog/category/groovy/" target="_self"&gt;Hello Groovy in SAS 9.3&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 23:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-and-Parsing-Hive-Array-complex-data-types-in-to-a-sas/m-p/333631#M75215</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-02-16T23:49:48Z</dc:date>
    </item>
  </channel>
</rss>

