BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dmanna
Calcite | Level 5

Creating a table with SAS and Cloudera Impala ODBC engine I can't import data with many columns (more than 1080). The table is created but the data is not written and the following error is generated:

ERROR: CLI execute error: [Cloudera][ImpalaODBC] (110) Error while executing a query in Impala: [HY000] : AnalysisException: Syntax error in line 1: ...,xxx`) VALUES ( ? , ? , ? , ? , ? , ? , ? , ... ^ Encountered: Unexpected character Expected: CASE, CAST, DEFAULT, EXISTS, FALSE, IF, INTERVAL, NOT, NULL, TRUNCATE, TRUE, IDENTIFIER

 

I've tried a Create table as select from an existing table in sas (work) or impala. Also I've tried the same create table as select with only one row and give me the same error. The ODBC driver used is the Cloudera Impala ODBC driver 2.5.32 and run on Linux CentOs.

The limit is 1080 columns... after there's the error!

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
dmanna
Calcite | Level 5

I've solved with bulkload=yes:

 

data Impala.table (bulkload=yes);
set work.table;
run;

 

or


proc sql;
create table Impala.table(bulkload=yes) as
select * from work.table;

quit;

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

I suggest you open a track with SAS Tech Support if you haven't already done so. I had a quick look in the SAS notes on this but most problems reported were to do with out-of-date ODBC drivers - yours appears to be more recent than those causing problems.

dmanna
Calcite | Level 5

I've solved with bulkload=yes:

 

data Impala.table (bulkload=yes);
set work.table;
run;

 

or


proc sql;
create table Impala.table(bulkload=yes) as
select * from work.table;

quit;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 5750 views
  • 1 like
  • 2 in conversation