<?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: Simple Query With Complex Type of MAP&amp;lt;string, float&amp;gt; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Simple-Query-With-Complex-Type-of-MAP-lt-string-float-gt/m-p/91909#M12323</link>
    <description>&lt;P&gt;This seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;select 
    snum, m.key, m.value
from table, table.items m;&lt;/PRE&gt;</description>
    <pubDate>Sun, 23 Jun 2019 14:33:46 GMT</pubDate>
    <dc:creator>Eediej</dc:creator>
    <dc:date>2019-06-23T14:33:46Z</dc:date>
    <item>
      <title>Simple Query With Complex Type of MAP&lt;string, float&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Query-With-Complex-Type-of-MAP-lt-string-float-gt/m-p/91901#M12322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a simple question about querying complex types.&amp;nbsp; The schema, raw table and desired result is listed below.&amp;nbsp; Could someone help me craft this query in Impala? CDH 5.15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get it to work in Hive, but it seems like Impala uses a join-like syntax to access complex columns.&amp;nbsp; Many Thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;schema:
	snum int
	items map&amp;lt;string, float&amp;gt;


raw parquet table:
	1, {"a": 1.3, "b", 9.1}
	2, {"c", 84.9, "b", 1.1}
	3, {}
	4, {"x", 42.5,"p", 0.08}


desired result:
	1,a,1.3
	1,b,9.1
	2,c,84.9
	2,b,1.1
	3,null,null
	4,x,42.5
	4,p,0.08

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:28:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Query-With-Complex-Type-of-MAP-lt-string-float-gt/m-p/91901#M12322</guid>
      <dc:creator>Eediej</dc:creator>
      <dc:date>2022-09-16T14:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Query With Complex Type of MAP&lt;string, float&gt;</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Query-With-Complex-Type-of-MAP-lt-string-float-gt/m-p/91909#M12323</link>
      <description>&lt;P&gt;This seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;select 
    snum, m.key, m.value
from table, table.items m;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jun 2019 14:33:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Query-With-Complex-Type-of-MAP-lt-string-float-gt/m-p/91909#M12323</guid>
      <dc:creator>Eediej</dc:creator>
      <dc:date>2019-06-23T14:33:46Z</dc:date>
    </item>
  </channel>
</rss>

