Github user laurentgo commented on a diff in the pull request:
https://github.com/apache/drill/pull/1024#discussion_r149277205
--- Diff:
exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillCursor.java ---
@@ -100,13 +103,17 @@
final LinkedBlockingDeque<QueryDataBatch> batchQueue =
Queues.newLinkedBlockingDeque();
+ private final DrillCursor parent;
--- End diff --
you only need to know the moment after which the query times out, basically
StopWatch (but you could use a long as an epoch too with Long.MAX meaning
infinite wait).
---