Skip to content

Business intelligence made simple

Use start_with

Andrew Kane96274507ee87
diff --git a/lib/blazer/adapters/athena_adapter.rb b/lib/blazer/adapters/athena_adapter.rb
index 07ce8c14..7d75fc6d 100644
--- a/lib/blazer/adapters/athena_adapter.rb
+++ b/lib/blazer/adapters/athena_adapter.rb
@@ -32,7 +32,7 @@ module Blazer
query_execution_id: query_execution_id
)
rescue Aws::Athena::Errors::InvalidRequestException => e
- unless e.message =~ /Query has not yet finished. Current state: (RUNNING|QUEUED)/
+ unless e.message.start_with?("Query has not yet finished.")
raise e
end
if Time.now < stop_at