<?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 Impala to query Hive table built from JSON in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-to-query-Hive-table-built-from-JSON/m-p/84912#M11605</link>
    <description>&lt;P&gt;Trying to understand if this use case is possible. I have a json file that I want to build a hive table with. Here is an example of what I could use to do that - &lt;A href="https://pkghosh.wordpress.com/2012/05/06/hive-plays-well-with-json/" target="_blank"&gt;https://pkghosh.wordpress.com/2012/05/06/hive-plays-well-with-json/&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, once built, I would like to query using impala as below or am I restricted to using Hive queries for sushc tables?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT b.blogID, c.email FROM comments a LATERAL VIEW json_tuple(a.value, 'blogID', 'contact') b 
AS blogID, contact  LATERAL VIEW json_tuple(b.contact, 'email', 'website') c 
AS email, website WHERE b.blogID='64FY4D0B28';&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:03:54 GMT</pubDate>
    <dc:creator>AbhiBasu</dc:creator>
    <dc:date>2022-09-16T14:03:54Z</dc:date>
  </channel>
</rss>

