Fixing runtime bug

- Executors’ exhausted result set on Running Runs
- Finalized the optimization on Teradata.