drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laurentgo <...@git.apache.org>
Subject [GitHub] drill pull request #1024: DRILL-3640: Support JDBC Statement.setQueryTimeout...
Date Tue, 07 Nov 2017 06:10:53 GMT
Github user laurentgo commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1024#discussion_r149277524
  
    --- Diff: exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillPreparedStatementImpl.java
---
    @@ -61,8 +65,14 @@ protected DrillPreparedStatementImpl(DrillConnectionImpl connection,
         if (preparedStatementHandle != null) {
           ((DrillColumnMetaDataList) signature.columns).updateColumnMetaData(preparedStatementHandle.getColumnsList());
         }
    +    //Implicit query timeout
    +    this.queryTimeoutInSeconds = 0;
    +    this.elapsedTimer = Stopwatch.createUnstarted();
    --- End diff --
    
    you want a new timer for each execution: Best way is to let cursor manage it


---

Mime
View raw message