Skip to main content

open_table_opt

Function open_table_opt 

Source
pub fn open_table_opt(path: &Path) -> Result<Option<MappedTable>>
Expand description

open_table, but a missing file means an empty table rather than an error.

This is the normal way to read any table that can legitimately have no rows, which is most of them: publish skips writing a zero-row table, so a traces block from a service that emits no span links simply has no span_links.arrow. It is also how a block written before a table existed reads back, which is the same case a version from now.