Browse Source

Handle empty rows

Andrew Kane 7 years ago
parent
commit
0672d6d5cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/blazer/adapters/athena_adapter.rb

+ 1 - 1
lib/blazer/adapters/athena_adapter.rb

@@ -55,7 +55,7 @@ module Blazer
 
             utc = ActiveSupport::TimeZone['Etc/UTC']
 
-            rows = untyped_rows[1..-1]
+            rows = untyped_rows[1..-1] || []
             column_types.each_with_index do |ct, i|
               # TODO more column_types
               case ct