activewarehouse / activewarehouse-etl

Extract-Transform-Load library from ActiveWarehouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

csv_destination enclosing inconsistent

epinault opened this issue · comments

if you specify and enclose options for a cvs destination , it forces to have quote " but you cannot specify any other char. it should use the quote_char and set it as well like

in the init it should be

@Enclose = configuration[:enclose]

in the options method

  def options
    @options ||= {
      :col_sep => separator,
      :row_sep => eol,
      :quote_char => enclose,
      :force_quotes => true & enclose
    }
  end