- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
i have sas 9.4 linux with clouderaimpala drivers installed.
i am trying to list all tables (table name) from one of haddop database but not sure about how query exactly look like, can someone please help...
below query is not much help,
libname try "/home/userid";
proc sql;
connect to impala as xyzk (datasrc=xxx user=xxx pw=xxx database=xxx);
execute (create table 'try.test' (show tables;)) by xyzk;
quit;
run;
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Anything that is set inside an EXECUTE block will be target DBMS dependent. So you should go to an Impala forum for such details.
Further more, using EXECUTE will not return anything to the client SAS session, so I assume a SELECT * FROM CONNECTION TO... construct fits your need better.
Another option is to issue a libname instead, and then you can use SAS to list the available tables.
Search support.sas.com for "PROC SQL DICTIONARY TABLES", or query the generic SASHELP.VTABLE system view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Anything that is set inside an EXECUTE block will be target DBMS dependent. So you should go to an Impala forum for such details.
Further more, using EXECUTE will not return anything to the client SAS session, so I assume a SELECT * FROM CONNECTION TO... construct fits your need better.
Another option is to issue a libname instead, and then you can use SAS to list the available tables.
Search support.sas.com for "PROC SQL DICTIONARY TABLES", or query the generic SASHELP.VTABLE system view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you LinusH.
little confuse if i still need to use 2 libname statement - 1 to reference to get output in my home dir and 2nd which reference connection like this,
libname xyz '/home/userid';
libname hdp impala datasrc=xxxk user=xxx pw=xxx database=xyk-db;
proc sql;
create table xyz.test as select * from DICTIONARY.TABLES;
quit;
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You could store it in work if you it's intermediate use and you avoid assigning another library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
thank you LinusH.