<?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: Accessing Table in Impala where Table Name &amp;gt; 32 Char in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828514#M327271</link>
    <description>&lt;P&gt;It's the same but you use the impala ODBC (line in red would change to Impala) and the impala version of SQL if you had any functions in the query, which you don't in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;connect to odbc(DSN=MyDSNName user=ReadUser pw=ReadPass);&lt;/STRONG&gt;&lt;/FONT&gt;
create table issue.newtable as
select * from connection to odbc
(select * from dbo.MyGoodnessWhyIsTheNameOfThisTableSoEmbarassinglyLong);
disconnect from odbc;
quit;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Aug 2022 20:34:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-08-12T20:34:06Z</dc:date>
    <item>
      <title>Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828489#M327262</link>
      <description>&lt;P&gt;Background: We recently migrated from SQL Server to Impala Hadoop Environment. We use Kerberos for authentication. We also use an Autoexec at SAS startup to create our data libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know the proper syntax for writing a proc sql statement for creating a database object for such an environment in the event the filename exceeds 32 characters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the current proc sql step I use (for our former SQL Server environment) looks like this:&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to odbc(DSN=MyDSNName user=ReadUser pw=ReadPass);&lt;BR /&gt;create table issue.newtable as&lt;BR /&gt;select * from connection to odbc&lt;BR /&gt;(select * from dbo.MyGoodnessWhyIsTheNameOfThisTableSoEmbarassinglyLong);&lt;BR /&gt;disconnect from odbc;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;And no, changing the table name, at this time, is currently not an option.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 17:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828489#M327262</guid>
      <dc:creator>TylerP8813</dc:creator>
      <dc:date>2022-08-12T17:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828491#M327263</link>
      <description>&lt;P&gt;For those tables, use a direct pass through query or creating a view of the table with a truncated name are the two workarounds I'm familiar with for this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 17:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828491#M327263</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-12T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828498#M327264</link>
      <description>&lt;P&gt;That is what the example I provided does when we were connecting to the SQL environment. However, I'm trying to find the correct syntax for an Impala connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 18:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828498#M327264</guid>
      <dc:creator>TylerP8813</dc:creator>
      <dc:date>2022-08-12T18:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828505#M327266</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274272"&gt;@TylerP8813&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;That is what the example I provided does when we were connecting to the SQL environment. However, I'm trying to find the correct syntax for an Impala connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So your actual question has nothing to do with the length of the names of the tables?&amp;nbsp; Just how to connect to Impala?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828505#M327266</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-12T20:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828506#M327267</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/bicdc/9.4/bidsag/p08mx9tev28i7qn1o3hct8jqsljx.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/bicdc/9.4/bidsag/p08mx9tev28i7qn1o3hct8jqsljx.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to set up an ODBC to Impala and then connect the same way really.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this a server installation it may need to be set up on the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828506#M327267</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-12T20:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828507#M327268</link>
      <description>&lt;P&gt;I'm connected to Impala using an ODBC connection. We also use an autoexecutable file that creates all the libraries we need at SAS startup. Within that autoexecutable, we've been using code to create pass through tables for those with names longer than 32 characters. I'm looking for the proper syntax for creating those pass-through's for impala.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828507#M327268</guid>
      <dc:creator>TylerP8813</dc:creator>
      <dc:date>2022-08-12T20:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828511#M327269</link>
      <description>&lt;P&gt;I have an ODBC already set up. It works fine for all but the 25 or so tables with names longer than 32 characters. We've been using a pass-through for SQL up to this point. Since we migrated to Impala, I need to know the syntax and any other relevant info for the new pass-through statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828511#M327269</guid>
      <dc:creator>TylerP8813</dc:creator>
      <dc:date>2022-08-12T20:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828514#M327271</link>
      <description>&lt;P&gt;It's the same but you use the impala ODBC (line in red would change to Impala) and the impala version of SQL if you had any functions in the query, which you don't in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;connect to odbc(DSN=MyDSNName user=ReadUser pw=ReadPass);&lt;/STRONG&gt;&lt;/FONT&gt;
create table issue.newtable as
select * from connection to odbc
(select * from dbo.MyGoodnessWhyIsTheNameOfThisTableSoEmbarassinglyLong);
disconnect from odbc;
quit;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828514#M327271</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-12T20:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828521#M327274</link>
      <description>&lt;P&gt;We use this proc sql statement to create newly named versions of the tables in a new library called "issue" so that they can be referenced from our code. I'm not necessarily trying to run a function, just create a copy of the table in a new library that SAS can reference.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828521#M327274</guid>
      <dc:creator>TylerP8813</dc:creator>
      <dc:date>2022-08-12T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828523#M327275</link>
      <description>&lt;P&gt;Ok. I think you have the answer to your question then, or is something still unclear/not working?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 21:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828523#M327275</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-12T21:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828540#M327278</link>
      <description>&lt;P&gt;In case you've got already a working libname to Impala defined you can also use "connect USING" as an alternative to an explicit connection string. &lt;BR /&gt;Note: USING doesn't work with the libname meta engine.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect using &amp;lt;SAS libref to impala&amp;gt; as imp;
create table issue.newtable as
select * from connection to imp
(select * from dbo.MyGoodnessWhyIsTheNameOfThisTableSoEmbarassinglyLong);
disconnect from imp;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want (or have) to stick with an explicit connection string and got already a libname defined then all the information you need is already available in the libname definition.&lt;BR /&gt;I certainly would avoid using explicit credential in a connect statement but would always use an authentication domain instead.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 04:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828540#M327278</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-08-13T04:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Table in Impala where Table Name &gt; 32 Char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828931#M327465</link>
      <description>&lt;P&gt;This appears to be the right solution but I keep getting this error:&lt;BR /&gt;"ERROR: CLI prepare error: [Cloudera][ImpalaODBC] (350) Max query retry limit exceeded. Retry Limit: 5"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which may be due to some settings or issue with driver, etc. rather than SAS itself.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 20:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-Table-in-Impala-where-Table-Name-gt-32-Char/m-p/828931#M327465</guid>
      <dc:creator>TylerP8813</dc:creator>
      <dc:date>2022-08-16T20:43:37Z</dc:date>
    </item>
  </channel>
</rss>

