Hey,
In the current design for column files we allow to have different file
formats for the base file and for the column files, with having a separate
`file_format` field on the column file level. In the last V4 sync we had a
conversation around re-opening the discussion on this area.
The question:
Do we want to restrict column files to have the same file format as the
base file?
Pros:
- Potentially simpler implementation for the read side:
- Native column file reading support in the readers of the supported
file formats is enough
- We can avoid implementing a "generic" reader across file formats
that might delegate to the native readers if only a single file format is
affected by the read. (this builds on the assumption that a native reader
is more performant than the "generic" one. If not, then this bullet point
is obsolete)
Cons:
- This moves the bar higher for new file formats in the future
- Closes the door for use cases where some of the column types like
vectors are on purpose stored in a different format
- We have to implement and maintain the full native support for all the
supported file formats separately
- Puts some burden on writers: They have to either fallback to the
regular update mechanism if cross-format case is detected, or have to
rewrite the original data too to the desired file format
My personal opinion here is that, as an open table format supporting
multiple file formats, we have to keep the flexibility of different file
formats across column files.
Consensus on this would be important to continue the work on the read path
implementation. Please share your opinion!
Regards,
Gabor