BookmarkSubscribeRSS Feed
anandmgjsa
Fluorite | Level 6

Hello,

I am connecting to Impala. When I am using single variable, there is no error.But if i add another variable a cli error comes. Error is:CLI prepare error: [cloudera][ImpalaODbC] Query analysis error occured during query execution.

I am using the below code:

proc sql;

%conxnimp(eap_v,implink,db,dbmax_test = 30)

create table banners as select * from connection to implink

( select * from( select ccsid,mis_dt from event where mis_dt = '2021-04-28' )b )a;

quit;  

when i run with 'ccsid' in select it runs and gives o/p. But on adding mis_dt it gives the mentioned error.   

1 REPLY 1
SASKiwi
PROC Star

Not sure if this helps but looks like you can simplify your query:

proc sql;
%conxnimp(eap_v,implink,db,dbmax_test = 30)
create table banners as select * from connection to implink
(select ccsid, mis_dt from event where mis_dt = '2021-04-28' );
quit;  

Also try selecting another column other than mis_dt in case that is the problem.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1178 views
  • 0 likes
  • 2 in conversation