Browse Source

Added date support

Andrew Kane 6 years ago
parent
commit
f38fd4494a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/blazer/adapters/athena_adapter.rb

+ 4 - 0
lib/blazer/adapters/athena_adapter.rb

@@ -63,6 +63,10 @@ module Blazer
                 rows.each do |row|
                   row[i] = utc.parse(row[i])
                 end
+              when "date"
+                rows.each do |row|
+                  row[i] = Date.parse(row[i])
+                end
               when "bigint"
                 rows.each do |row|
                   row[i] = row[i].to_i