<?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: split_part(col_name,delimiter, index) in Impala Vs. SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927302#M364945</link>
    <description>&lt;P&gt;Try just taking the value of COL without passing it through the function?&amp;nbsp; Does that work? Yes&lt;/P&gt;&lt;P&gt;Try passing a CONSTANT thru the function instead of the value of COL? Does that work? It failed with the same error message.&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 13:17:30 GMT</pubDate>
    <dc:creator>Yen</dc:creator>
    <dc:date>2024-05-07T13:17:30Z</dc:date>
    <item>
      <title>split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927196#M364907</link>
      <description>&lt;P&gt;The function split_part(col_name,delimiter, index) worked well with select statement in the HUE editor when connected to impala.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same&amp;nbsp;function throws an error when running in SAS EG. Below is the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a workaround and delivered the file. However, I want to know if anyone here knows a way to submit the code via SAS without being losing the ability to use Impala functions that SAS Access doesn’t support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;66&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql noprint;&lt;/P&gt;&lt;P&gt;67&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; connect to impala as XXX (dsn=XXX user=XXXpw = "XXX");&lt;/P&gt;&lt;P&gt;68&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; create table temp(compress=yes) as&lt;/P&gt;&lt;P&gt;69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from connection to XXX (&lt;/P&gt;&lt;P&gt;71&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&lt;/P&gt;&lt;P&gt;72&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; split_part(col, '~', 1) as col1&lt;/P&gt;&lt;P&gt;73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from table1 a , table2 c , table3 b&lt;/P&gt;&lt;P&gt;74&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where condition);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Compression was disabled for data set XXX because compression overhead would increase the size of the data set.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: CLI cursor extended fetch error: [Cloudera][Support] (40550) Invalid character value for cast specification. :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Cloudera][Support] (40550) Invalid character value for cast specification. : [Cloudera][Support] (40550) Invalid character&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value for cast specification. : [Cloudera][Support] (40550) Invalid character value for cast specification. :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Cloudera][Support] (40550) Invalid character value for cast specification. : [Cloudera][Support] (40550) Invalid character&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;value for cast specification. : [Cloudera][Support] (40550) Invalid charact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; disconnect from&amp;nbsp; XXX;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Statement not executed due to NOEXEC option.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 17:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927196#M364907</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2024-05-06T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927199#M364909</link>
      <description>&lt;P&gt;What makes you think the error message has anything to do with that function call?&lt;/P&gt;
&lt;P&gt;Looks like it is just complaining that that something or other could not be cast from one type to another.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 17:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927199#M364909</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-05-06T17:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927211#M364917</link>
      <description>&lt;P&gt;I had similar experiences with other functions. So, from your experience or understanding it has nothing to do with split_part function. If so, can you guide me how to troubleshoot it?&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 18:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927211#M364917</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2024-05-06T18:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927216#M364919</link>
      <description>The type of SQL you're using here is commonly called pass thru SQL, which means the commands are literally passed on to the server. So anything that runs on the server should run here. Have you tested that these functions/SQL works in Impala?</description>
      <pubDate>Mon, 06 May 2024 19:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927216#M364919</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-05-06T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927217#M364920</link>
      <description>&lt;P&gt;Yes (the SQL select statement), worked in the HUE editor.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 19:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927217#M364920</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2024-05-06T19:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927219#M364921</link>
      <description>I would open a track with SAS Tech support to debug the conversion issue then to understand why certain fields cannot be mapped back to SAS. &lt;BR /&gt;&lt;BR /&gt;Can you test this but selecting just the column and not using the functions?&lt;BR /&gt;&lt;BR /&gt;If that does work, you could use the SCAN() function on the SAS side which is the equivalent of the split_part function.  It's a workaround, which isn't ideal, but may help you debug the issue.</description>
      <pubDate>Mon, 06 May 2024 19:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927219#M364921</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-05-06T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927220#M364922</link>
      <description>&lt;P&gt;Try just taking the value of COL without passing it through the function?&amp;nbsp; Does that work?&lt;/P&gt;
&lt;P&gt;Try passing a CONSTANT thru the function instead of the value of COL? Does that work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also try only pulling SOME of the values to see if it is some specific value that is causing the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And another trivial thing is check and make sure that the hyphen in that character string is not some other strange non-ASCII character like an en-dash or em-dash that has someone gotten into your SAS code and is confusing the remote database.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 19:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927220#M364922</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-05-06T19:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927222#M364924</link>
      <description>&lt;P&gt;I am working on all the ideas suggested and will let you know my findings. I appreciate you Tom and Reeza for your thoughts.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 20:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927222#M364924</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2024-05-06T20:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927301#M364944</link>
      <description>&lt;UL&gt;&lt;LI&gt;simple select statement on the column worked.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Scan failed.&lt;/LI&gt;&lt;LI&gt;The workaround that I used worked "SUBSTR(col_name, 1, instr(col_name, '~')-1)"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will work with tech team and see if I can get some guidance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help and time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927301#M364944</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2024-05-07T13:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: split_part(col_name,delimiter, index) in Impala Vs. SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927302#M364945</link>
      <description>&lt;P&gt;Try just taking the value of COL without passing it through the function?&amp;nbsp; Does that work? Yes&lt;/P&gt;&lt;P&gt;Try passing a CONSTANT thru the function instead of the value of COL? Does that work? It failed with the same error message.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/split-part-col-name-delimiter-index-in-Impala-Vs-SAS/m-p/927302#M364945</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2024-05-07T13:17:30Z</dc:date>
    </item>
  </channel>
</rss>

