Impala-shell is it possible to pass a where clause ?
Hi guys,
This is basic question but not able to solve it...
I created a scheduled workflow in Oozie to run a Shell script witch runs some impala-shell cmd. Everything worked fine since I added a where clause for one of them. I'm wondering if it's possible to pass a where clause on a query impala-shell ?
Here is my basic cmd in shell script :
impala-shell -B -q 'select col1,col2,Col3 from MyDB.MyTable where col1 IN ('argument1','argument2','argument3','argument4','argument5') order by col1,col2' --delimited --output_delimiter='|' -o ${DIR_OUT}/MyTable_$(date +"%Y%m%d-%H%M%S").csv --print_header 2>${DIR_LOG}/MyTable_$(date +"%Y%m%d-%H%M%S").log;
It works fine without "where col1 IN ('argument1','argument2','argument3','argument4','argument5')"
Is there a way to do it without using a file ? (with -f option ???)
Thanks for your advise
Alex

