How to pack decimal value for Native file specification

adyneradyner Vertica Customer

Hello.
I'm trying to implement tool for serialize data to native file protocol.
And now I have a problems with pack decimals into native file format.
The documentation on this subject contains literally a couple of lines.
https://www.vertica.com/docs/8.1.x/HTML/index.htm#Authoring/AdministratorsGuide/BinaryFilesAppendix/CreatingNativeBinaryFormatFiles.htm

Maybe there is an extended description of how to pack decimal values?
I would also appreciate it if someone shared a code sample in any language as implemented.

Answers

  • swalkausswalkaus Vertica Employee Employee

    Have you considering using parquet instead? The native format to which you are referring predates Vertica's support for the parquet format (actually it probably predates the parquet format entirely). There are several advantages to that approach: existing tools can read and write parquet, Vertica can export and load parquet, columnar compression, etc.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file