<?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 Re: SQL pass through for Impala - unable to set query options in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867620#M342672</link>
    <description>&lt;P&gt;Are you saying the Impala cannot figure out how to names the variables it reads from a parquet file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try setting that option as part of the connection string? Will it stay in effect for your whole session once set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try issuing the SET statement with EXECUTE() before issuing the query with CONNECTION TO () ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to impala (&amp;amp;impala.);
execute by impala (set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name) ;
create table SASDATASET as select * from connection to impala
  (SELECT * FROM db_name.tablename )
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Did you trying issuing multiple statements at once with the EXECUTE() statement?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to impala (&amp;amp;impala.);
execute by impala (
set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name;
CREATE VIEW IF NOT EXISTS &amp;amp;BASETABLE. as
(SELECT * FROM db_name.tablename )
) ;
create SASDATASET as select * from connection to impala
(select * from &amp;amp;BASETABLE. )
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2023 20:56:00 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-04-01T20:56:00Z</dc:date>
    <item>
      <title>SQL pass through for Impala - unable to set query options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867602#M342666</link>
      <description>&lt;P&gt;&lt;STRONG&gt;We use below option while querying in impala.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name;&lt;/P&gt;&lt;P&gt;SELECT * FROM db_name.tablename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to extract same table using SAS. However, unable to set this&amp;nbsp;option&lt;/STRONG&gt; &lt;U&gt;&lt;EM&gt;'PARQUET_FALLBACK_SCHEMA_RESOLUTION=name'&lt;/EM&gt;&lt;/U&gt;&amp;nbsp; in pass through SQL.&amp;nbsp; Without this option impala looks for column order and wrong values are being displayed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help how this option can be set in Pass through SQL. I tried in '&amp;amp;impala.' connection string and as below statement but it doesn't work -&amp;nbsp;&lt;/P&gt;&lt;P&gt;execute (set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name) by impala;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to impala (&amp;amp;impala.);&lt;BR /&gt;execute (CREATE VIEW IF NOT EXISTS &amp;amp;BASETABLE. as&lt;BR /&gt;(SELECT * FROM db_name.tablename )) by impala;&lt;BR /&gt;disconnect from impala;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 04:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867602#M342666</guid>
      <dc:creator>PRAVIN_JAIN</dc:creator>
      <dc:date>2023-04-01T04:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL pass through for Impala - unable to set query options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867620#M342672</link>
      <description>&lt;P&gt;Are you saying the Impala cannot figure out how to names the variables it reads from a parquet file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try setting that option as part of the connection string? Will it stay in effect for your whole session once set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try issuing the SET statement with EXECUTE() before issuing the query with CONNECTION TO () ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to impala (&amp;amp;impala.);
execute by impala (set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name) ;
create table SASDATASET as select * from connection to impala
  (SELECT * FROM db_name.tablename )
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Did you trying issuing multiple statements at once with the EXECUTE() statement?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to impala (&amp;amp;impala.);
execute by impala (
set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name;
CREATE VIEW IF NOT EXISTS &amp;amp;BASETABLE. as
(SELECT * FROM db_name.tablename )
) ;
create SASDATASET as select * from connection to impala
(select * from &amp;amp;BASETABLE. )
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 20:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867620#M342672</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-01T20:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL pass through for Impala - unable to set query options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867700#M342709</link>
      <description>As suggested below query worked, mistake I was making was to define option while creating the view instead of while fetching the data.&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to impala (&amp;amp;impala.);&lt;BR /&gt;execute by impala (set PARQUET_FALLBACK_SCHEMA_RESOLUTION=name) ;&lt;BR /&gt;create table SASDATASET as select * from connection to impala&lt;BR /&gt;(SELECT * FROM db_name.tablename )&lt;BR /&gt;;&lt;BR /&gt;quit;</description>
      <pubDate>Mon, 03 Apr 2023 05:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-pass-through-for-Impala-unable-to-set-query-options/m-p/867700#M342709</guid>
      <dc:creator>PRAVIN_JAIN</dc:creator>
      <dc:date>2023-04-03T05:03:50Z</dc:date>
    </item>
  </channel>
</rss>

