Skip to content

Commit

Permalink
Make sure sending cancel request in StatementClient.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Dec 6, 2024
1 parent 55c3bdc commit 402ee02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trino/client/statement_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def cancel_leaf_stage
end

def close
return unless running?
return if finished? || query_failed?

@state = :client_aborted

Expand Down

0 comments on commit 402ee02

Please sign in to comment.