toddmeng-db commented on code in PR #3217:
URL: https://github.com/apache/arrow-adbc/pull/3217#discussion_r2260939798


##########
csharp/src/Drivers/Databricks/DatabricksCompositeReader.cs:
##########
@@ -66,10 +63,16 @@ internal DatabricksCompositeReader(DatabricksStatement 
statement, Schema schema,
             _proxyConfigurator = proxyConfigurator;
 
             // use direct results if available
-            if (_statement.HasDirectResults && _statement.DirectResults != 
null && _statement.DirectResults.__isset.resultSet)
+            if (_statement.HasDirectResults && _statement.DirectResults != 
null && _statement.DirectResults.__isset.resultSet && 
statement.DirectResults?.ResultSet != null)
             {
                 _activeReader = 
DetermineReader(_statement.DirectResults.ResultSet);
+                if (!statement.DirectResults.ResultSet.HasMoreRows)
+                {
+                    return;
+                }

Review Comment:
   it's a bit more efficient for linting, otherwise requires a bunch of null 
checks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to