<?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 Accessing struct fields in HIVE from Qlik Sense in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Accessing-struct-fields-in-HIVE-from-Qlik-Sense/m-p/1732752#M5306</link>
    <description>&lt;P&gt;I'm having trouble accessing fields within structs from a Qlik Sense data load using the Apache Hive connector.&lt;/P&gt;&lt;P&gt;The following query works fine:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
	[name],
	[version],
	[records];
SELECT name,
	version,
    records
FROM [dt_metrics].dataflows
WHERE as_of_date &amp;gt;= '2020-07-29';&lt;/LI-CODE&gt;&lt;P&gt;But this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
	[name],
	[version],
	[records.total];
SELECT name,
	version,
    records.total
FROM [dt_metrics].dataflows
WHERE as_of_date &amp;gt;= '2020-07-29';&lt;/LI-CODE&gt;&lt;P&gt;And this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
	[name],
	[version],
	[total_records];
SELECT name,
	version,
    records.total as total_records
FROM [dt_metrics].dataflows
WHERE as_of_date &amp;gt;= '2020-07-29';&lt;/LI-CODE&gt;&lt;P&gt;And many variants of putting quotation marks and square brackets in different places,&lt;/P&gt;&lt;P&gt;Result in the error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The following error occurred:
Field 'name' not found
The error occurred here:
?&lt;/LI-CODE&gt;&lt;P&gt;Which I can only assume means it isn't able to parse the query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;n.b.&amp;nbsp;&lt;STRONG&gt;records&amp;nbsp;&lt;/STRONG&gt;is a struct containing the field&amp;nbsp;&lt;STRONG&gt;total&amp;nbsp;&lt;/STRONG&gt;and this query works fine on the HIVE command line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT name, records.total FROM dt_metrics.dataflows limit 5;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the HIVE connector support accessing struct fields? Is there some special syntax or arrangement of quotation marks that I need to use?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Dec 2021 20:13:46 GMT</pubDate>
    <dc:creator>NK_20</dc:creator>
    <dc:date>2021-12-28T20:13:46Z</dc:date>
    <item>
      <title>Accessing struct fields in HIVE from Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Accessing-struct-fields-in-HIVE-from-Qlik-Sense/m-p/1732752#M5306</link>
      <description>&lt;P&gt;I'm having trouble accessing fields within structs from a Qlik Sense data load using the Apache Hive connector.&lt;/P&gt;&lt;P&gt;The following query works fine:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
	[name],
	[version],
	[records];
SELECT name,
	version,
    records
FROM [dt_metrics].dataflows
WHERE as_of_date &amp;gt;= '2020-07-29';&lt;/LI-CODE&gt;&lt;P&gt;But this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
	[name],
	[version],
	[records.total];
SELECT name,
	version,
    records.total
FROM [dt_metrics].dataflows
WHERE as_of_date &amp;gt;= '2020-07-29';&lt;/LI-CODE&gt;&lt;P&gt;And this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
	[name],
	[version],
	[total_records];
SELECT name,
	version,
    records.total as total_records
FROM [dt_metrics].dataflows
WHERE as_of_date &amp;gt;= '2020-07-29';&lt;/LI-CODE&gt;&lt;P&gt;And many variants of putting quotation marks and square brackets in different places,&lt;/P&gt;&lt;P&gt;Result in the error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The following error occurred:
Field 'name' not found
The error occurred here:
?&lt;/LI-CODE&gt;&lt;P&gt;Which I can only assume means it isn't able to parse the query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;n.b.&amp;nbsp;&lt;STRONG&gt;records&amp;nbsp;&lt;/STRONG&gt;is a struct containing the field&amp;nbsp;&lt;STRONG&gt;total&amp;nbsp;&lt;/STRONG&gt;and this query works fine on the HIVE command line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT name, records.total FROM dt_metrics.dataflows limit 5;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the HIVE connector support accessing struct fields? Is there some special syntax or arrangement of quotation marks that I need to use?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 20:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Accessing-struct-fields-in-HIVE-from-Qlik-Sense/m-p/1732752#M5306</guid>
      <dc:creator>NK_20</dc:creator>
      <dc:date>2021-12-28T20:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing struct fields in HIVE from Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Accessing-struct-fields-in-HIVE-from-Qlik-Sense/m-p/1737030#M5342</link>
      <description>&lt;P&gt;Nobody?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 11:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Accessing-struct-fields-in-HIVE-from-Qlik-Sense/m-p/1737030#M5342</guid>
      <dc:creator>NK_20</dc:creator>
      <dc:date>2020-08-19T11:07:35Z</dc:date>
    </item>
  </channel>
</rss>

