GitHub user kkhatua opened a pull request:

    https://github.com/apache/drill/pull/1024

    DRILL-3640: Support JDBC Statement.setQueryTimeout(int)

    Allow for queries to be cancelled if they don't complete within the 
stipulated time.
    This is done by having `Drill[Prepared]StatementImpl` create a `Stopwatch` 
timer to track elapsed time. 
      * `DrillCursor` uses this to detect timeouts. 
      * `DrillResultSetImpl` uses this to detech timeout from the client side 
(e.g. a slow client, when all batches have been processed by DrillCursor)
    
    Tests added to test these and other query timeout scenarios for both, 
`Statement` and `PreparedStatement`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kkhatua/drill DRILL-3640_Alt

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/1024.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1024
    
----
commit 0fe2cfa71a60e7ed17ea12c1ba15fa28be66508f
Author: Kunal Khatua <kkha...@maprtech.com>
Date:   2017-11-04T00:20:59Z

    DRILL-3640: Support JDBC Statement.setQueryTimeout(int)
    
    Allow for queries to be cancelled if they don't complete within the 
stipulated time.
    This is done by having Drill[Prepared]StatementImpl create a Stopwatch 
timer to track elapsed time. 
      * DrillCursor uses this to detect timeouts. 
      * DrillResultSetImpl uses this to detech timeout from the client side 
(e.g. a slow client, when all batches have been processed by DrillCursor)
    Tests added to test these and other query timeout scenarios.

----


---

Reply via email to