<?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: How to create a view with IMPALA including a query option in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374397#M241973</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106069"&gt;@tsunamisabella&lt;/a&gt;,&amp;nbsp;&lt;SPAN&gt;did the responses from &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75213"&gt;@ChethanYM&lt;/a&gt;&amp;nbsp; assist you in resolving your concerns? If so, could you kindly designate the most suitable response as the solution? This will be beneficial for other members who might come across a similar issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 05:45:11 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2023-07-25T05:45:11Z</dc:date>
    <item>
      <title>How to create a view with IMPALA including a query option</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374190#M241900</link>
      <description>&lt;P&gt;Hello! I am creating a view `view_business` with IMPALA: since the source table `table_a` is a parquet formatted table with complex data types such as array and struct, I have to always run an query option statement "SET PARQUET_ARRAY_RESOLUTION=TWO_LEVEL_THEN_THREE_LEVEL" to load the arrays; otherwise those array columns are showing NULL value.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;DROP VIEW IF EXISTS discovery_database.view_business;
SET PARQUET_ARRAY_RESOLUTION=TWO_LEVEL_THEN_THREE_LEVEL;
CREATE VIEW discovery_database.view_business AS (
  SELECT * FROM table_a
)&lt;/LI-CODE&gt;&lt;P&gt;Once the view is created, if I want to query the view, I still need to run the query option statement first as follows:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET PARQUET_ARRAY_RESOLUTION=TWO_LEVEL_THEN_THREE_LEVEL; 
SELECT * FROM discovery_database.view_business&lt;/LI-CODE&gt;&lt;P&gt;However, &lt;STRONG&gt;the query option statement above is not supported in ODBC connector&lt;/STRONG&gt; when I tried to use the statements above to link the curated table `view_business` as a data source in a power BI report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: &lt;STRONG&gt;is it possible to create a view INCLUDING the query option statement "SET PARQUET_ARRAY_RESOLUTION=TWO_LEVEL_THEN_THREE_LEVEL", so every time when I query the view, I don't need to run this statement any more?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please note that IMPALA does not support scheduled query (to create a table instead a view). I also don't have a access right to create a scheduled query with HIVE in the HUE console. Therefore, creating a table with scheduled query cannot be the solution...&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:50:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374190#M241900</guid>
      <dc:creator>tsunamisabella</dc:creator>
      <dc:date>2026-04-21T06:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a view with IMPALA including a query option</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374272#M241927</link>
      <description>&lt;P&gt;Hi, I do not think we have such option to create a view along with query option, you can follow any one of below:&lt;/P&gt;&lt;P&gt;&amp;gt; Set the query option at session level before running the query.&lt;/P&gt;&lt;P&gt;&amp;gt; Add this query option globally in impala configurations -&amp;gt; "&lt;SPAN&gt;default_query_options" section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt; Add it in impala admission control pool for a specific pool where this query runs, edit the pool and add the property into "Default query options" section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chethan YM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 08:02:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374272#M241927</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2023-07-21T08:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a view with IMPALA including a query option</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374397#M241973</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106069"&gt;@tsunamisabella&lt;/a&gt;,&amp;nbsp;&lt;SPAN&gt;did the responses from &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75213"&gt;@ChethanYM&lt;/a&gt;&amp;nbsp; assist you in resolving your concerns? If so, could you kindly designate the most suitable response as the solution? This will be beneficial for other members who might come across a similar issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 05:45:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-create-a-view-with-IMPALA-including-a-query-option/m-p/374397#M241973</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-07-25T05:45:11Z</dc:date>
    </item>
  </channel>
</rss>

