Github user dsbos commented on a diff in the pull request:
https://github.com/apache/drill/pull/143#discussion_r38710714
--- Diff:
exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillResultSetImpl.java ---
@@ -87,12 +88,12 @@
boolean hasPendingCancelationNotification;
- DrillResultSetImpl(DrillStatementImpl statement, AvaticaPrepareResult
prepareResult,
+ DrillResultSetImpl(AvaticaStatement statement, AvaticaPrepareResult
prepareResult,
ResultSetMetaData resultSetMetaData, TimeZone
timeZone) {
super(statement, prepareResult, resultSetMetaData, timeZone);
- this.statement = statement;
+ connection = (DrillConnectionImpl) statement.getConnection();
final int batchQueueThrottlingThreshold =
- this.getStatement().getConnection().getClient().getConfig().getInt(
+ connection.getClient().getConfig().getInt(
--- End diff --
Yeah, I don't know why the code was like that.
Reworked a bit to eliminate redundant calls and code.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---