hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From P Reeder <>
Subject SerDe for Fixed Columns?
Date Mon, 28 Oct 2013 19:48:06 GMT
Hi! Sorry to ask such a basic question, but

How do I import data from a text file with fixed columns (no delimiter)? I.e, column 1 is
characters 1-6, column 2 is characters 7-11, column 3 is character 12, column 4 is character
13, and so forth?  I'd be surprised if no one has written a SerDe for this.

The manual talks about a MetadataTypedColumnsetSerDe, a ThriftSerDe, a DynamicSerDe, and SerDes
for JSON, Avro and ORC.  I also searched Bing for "
serde fixed", but that didn't appear to have anything relevant.

FWIW, the dataset is the National Immunization Survey:

This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.

View raw message