facebook/presto — pull request #982 by snarayananqubole (2014-01-26 04:53:29+00:00)
Title: Presto client should exit with the right code and an option to show progress in stderr

Two changes here:
- Presto client should exit with the right status code so calling program knows that there is a query failure
- Add an option --show-progress that would write progress information to stderr. Example:

Started Query: 20140123_125230_00078_e883z
Query: 20140123_125230_00078_e883z Progress: 0%
Query: 20140123_125230_00078_e883z Progress: 0%
Query: 20140123_125230_00078_e883z Progress: 0%
Query: 20140123_125230_00078_e883z Progress: 44%
Query: 20140123_125230_00078_e883z Progress: 54%
Query: 20140123_125230_00078_e883z Progress: 70%
Query: 20140123_125230_00078_e883z Progress: 70%
Query: 20140123_125230_00078_e883z Progress: 72%
Query: 20140123_125230_00078_e883z Progress: 80%
Query: 20140123_125230_00078_e883z Progress: 100%