Skip to main content
Question

How to pack decimal value for Native file specification

  • April 4, 2020
  • 1 reply
  • 9 views

adyner

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.

1 reply

swalkaus
Forum|alt.badge.img
  • Participating Frequently
  • April 8, 2020

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.