title: Run Python script in impala-shell
body: <p>I am able to run a text file that has queries delimited by ';' in the impala-shell. However, I have some queries that require the results of another query. For example, if Query1 gives me <code>name | age | birthday</code> and then the following query is something like <code>SELECT * FROM table1 WHERE age in (...)</code>, and those ages are from the age column from the first query. </p>
  
  <p>I know you can specify with <code>--vars</code> option, but that seems to be for inserting specific values. Is there a way to create Python script to handle something like this that would run in the impala-shell?</p>