vvysotskyi commented on a change in pull request #1549: DRILL-6834: Introduce
option to disable result set on CTAS, create vi…
URL: https://github.com/apache/drill/pull/1549#discussion_r235495680
##########
File path: exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillCursor.java
##########
@@ -499,6 +500,13 @@ private boolean nextRowInternally() throws SQLException {
currentRecordNumber = 0;
+ if (qrb.getHeader().hasUpdateCount()) {
+ int updateCount = qrb.getHeader().getUpdateCount();
+ int currentUpdateCount = statement.getUpdateCount() == -1 ? 0 :
statement.getUpdateCount();
+ ((DrillStatement) statement).setUpdateCount(updateCount +
currentUpdateCount);
Review comment:
Is it possible to set `updateCount` and other fields which are changed there
during `statement` creation? It may allow us to avoid adding additional setters
to the `DrillStatement` interface.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services