activewarehouse / activewarehouse-etl

Extract-Transform-Load library from ActiveWarehouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load_cache broken in some case for SQLResolver

epinault opened this issue · comments

if specifying a resolver such as

transform :source, :foreign_key_lookup,
{
  :resolver => SQLResolver.new( :sources, :name , :datawarehouse),
  :default => nil
}

the record from the database come back as a form

{"id"=>"10", "name"=>"working"}

and there is a disconnect since the field is a symbol (:name vs "name")

What needs to happen is to match to a string if select_all return only string base hash or symbolize that hash

Thanks for reporting this; strings vs. symbols is often a concern in the way pipeline is processed!

I think we should probably symbolize the hash, right, but then I'll have to add a breaking change note in the next release.