<?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: Is there any way to cast string to map? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/331365#M230871</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93478"&gt;@HareshAmin&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 06:28:30 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2021-12-01T06:28:30Z</dc:date>
    <item>
      <title>Is there any way to cast string to map?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/330562#M230709</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to cast string to map in Impala?&lt;/P&gt;&lt;P&gt;e.g:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select cast("A:1,B:1,C:1") as map&amp;lt;string, int&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 10:30:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/330562#M230709</guid>
      <dc:creator>HareshAmin</dc:creator>
      <dc:date>2021-11-19T10:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to cast string to map?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/330737#M230739</link>
      <description>&lt;P&gt;Hi, the complex MAP data type is supported, however it may not be as usable as other simple types. Please see:&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/impala-sql-reference/topics/impala-map.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/impala-sql-reference/topics/impala-map.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/impala-sql-reference/topics/impala-complex-types.html#complex_types/complex_sample_schema" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/impala-sql-reference/topics/impala-complex-types.html#complex_types/complex_sample_schema&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a similar "GET_JSON_OBJECT" built-in UDF, which may help you - depending what you need to achieve, please see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/impala-sql-reference/topics/impala-misc-functions.html#misc_functions__get_json_object" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/impala-sql-reference/topics/impala-misc-functions.html#misc_functions__get_json_object&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:06:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/330737#M230739</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2021-11-22T15:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to cast string to map?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/331365#M230871</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93478"&gt;@HareshAmin&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 06:28:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-any-way-to-cast-string-to-map/m-p/331365#M230871</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-12-01T06:28:30Z</dc:date>
    </item>
  </channel>
</rss>

