Monday, December 7, 2015

Parquet Strings

This took me a lot longer than expected to find: how define a String in a Parquet schema.

Basically, use binary. Yes, it is that easy.

   final MessageType schema = MessageTypeParser.parseMessageType(
                    "message event { required int64 reportid; required int64 event_ts; required int64 rid; required binary event;  optional binary details; }");

No comments: