I have multiple .sql files like (1.sql, 2.sql, 3.sql) and it contains the following queries.
1.sql:
show databases;
2.sql:
use default;
3.sql:
show tables;
4.sql:
select count(*) from employee limit 5;
I am trying to pass the files as mentioned below.
impala-shell -f 1.sql; 2.sql; 3.sql; 4.sql
In this case the command is executing only 1.sql and exiting from the terminal stating that 2.sql .. command not found.
I know I can put all the above queries in a single .sql file, but my question is how to pass multiple .sql files via command line.
Can someone suggest me how can I pass multiple .sql files to impala from command line?