hadoop - Stop sqoop from converting datetime to bigint -


recently noticed whenever ingest sql database using sqoop, datetime fields converted bigint (epoch * 1000) instead of string.

important note: i'm storing parquet.

i have been trying bunch of sqoop flags "--map-column-java" don't want manually define hundreds of columns in thousands of tables.

what flag missing prevent sqoop behaviour?

it seems sqoop didn't when storing in plain text.

instead of letting sqoop arcane magic on tables, decided following:

  1. ingest temporary table, stored text.
  2. create table (if not exists) temporary table, stored parquet
  3. insert overwrite text stored temporary table parquet stored table

this allows proper date formatting without hassle (maybe not existing) configuration , settings tweaking in sqoop.

the tradoff it's slower


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -