I am connecting to an impala server to retrieve some data. However I want to change the length of the variable in the impala pass-through sql statement because otherwise it will retrieve the variable with a length of 32767 which is not optimized.
This is how I would do it in SAS:
proc sql; connect to impala (dsn="somedsn"); create table want as select * from connection to impala (select var1 length=50 from &disc_table.); disconnect from impala; quit;
However, as IMPALA does not have the same sql statement structure, it does not work.
What is the correct statement to retrieve the var1 with a length=50 in IMPALA SQL statement ?
var1
length=50
You could ask IMPALA to CAST the variable to one with the correct length.
... (select cast(var1 as varchar(50)) as var1 from &disc_table.) ...
2.1m questions
2.1m answers
60 comments
57.0k users