Skip to content

Commit

Permalink
Merge pull request #205 from datafuselabs/fix/insert-into-close
Browse files Browse the repository at this point in the history
fix: insert into single data then close query auto
  • Loading branch information
hantmac authored Apr 24, 2024
2 parents aa43a9b + 6cc189b commit e8eb92f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ final boolean internalExecute(String sql, StageAttachment attachment) throws SQL
while (client.hasNext()) {
QueryResults results = client.getResults();
List<List<Object>> data = results.getData();
List<QueryRowField> schema = results.getSchema();
if ((data == null || data.isEmpty()) && (schema == null || schema.isEmpty())) {
// List<QueryRowField> schema = results.getSchema();
if (data == null || data.isEmpty()) {
client.advance();
} else {
break;
Expand Down

0 comments on commit e8eb92f

Please sign in to comment.