[ 
https://issues.apache.org/jira/browse/DRILL-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16054954#comment-16054954
 ] 

ASF GitHub Bot commented on DRILL-3640:
---------------------------------------

GitHub user kkhatua opened a pull request:

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

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

    Allow for queries to be cancelled if they don't complete within the 
stipulated time.
    We submit a timeout-managing task that sleeps for the stipulated period 
before trying to cancel the query (JDBC Statement). 
    It might be worth having a similar feature as a System/Session variable so 
that the same can be achieved via SQLLine or REST APIs, but is beyond the scope 
of this JIRA's PR.  

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

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

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

    https://github.com/apache/drill/pull/856.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 #856
    
----
commit e3c5c0f69b8f433dd159a37557c1bc4410ba537e
Author: Kunal Khatua <kkha...@maprtech.com>
Date:   2017-06-19T23:26:52Z

    DRILL-3640: Support JDBC Statement.setQueryTimeout(int)
    
    Allow for queries to be cancelled if they don't complete within the 
stipulated time.

----


> Drill JDBC driver support Statement.setQueryTimeout(int)
> --------------------------------------------------------
>
>                 Key: DRILL-3640
>                 URL: https://issues.apache.org/jira/browse/DRILL-3640
>             Project: Apache Drill
>          Issue Type: New Feature
>          Components: Client - JDBC
>    Affects Versions: 1.2.0
>            Reporter: Chun Chang
>            Assignee: Kunal Khatua
>             Fix For: Future
>
>
> It would be nice if we have this implemented. Run away queries can be 
> automatically canceled by setting the timeout. 
> java.sql.SQLFeatureNotSupportedException: Setting network timeout is not 
> supported.
>       at 
> org.apache.drill.jdbc.impl.DrillStatementImpl.setQueryTimeout(DrillStatementImpl.java:152)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to