Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.
/ pgdump-serde Public archive

SerDe support for reading pg_dump/COPY output

License

Notifications You must be signed in to change notification settings

spasam/pgdump-serde

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hive pg_dump format support

This SerDe adds support for reading pg_dump plain ouput. It does not support skipping header/footer lines. Header/footer data will have to be manually removed. Other alternative is to use COPY command to generated text format output.

Using

hive> add jar path/to/pgdump-serde-1.0.4-1.2.0-all.jar;

hive> create table my_table(a integer, b string, ...)
  row format serde 'com.pasam.hive.serde.pg.PgDumpSerDe'
  stored as textfile
;

Files

Building

Run mvn package to build

Eclipse support

Run mvn eclipse:eclipse to generate .project and .classpath files for eclipse

License

pgdump-serde is open source and licensed under the Apache 2 License