Pārlūkot izejas kodu

Added date support

Andrew Kane 7 gadi atpakaļ
vecāks
revīzija
f38fd4494a
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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