Skip to main content

is_metadata_field

Function is_metadata_field 

Source
pub fn is_metadata_field(field_id: i32) -> bool
Expand description

Checks if a field ID is a data-table metadata column.

Mirrors Java MetadataColumns.isMetadataColumn(int) (backed by META_IDS): only the field ids of columns projectable in a data-table scan return true. The position-delete-file internal columns (file_path/pos, ids i32::MAX - 101/-102) and the changelog columns (_change_type/_change_ordinal/_commit_snapshot_id) are deliberately excluded, so their ids return false here even though get_metadata_field can still resolve them.

§Arguments

  • field_id - The field ID to check

§Returns

true if the field ID is a data-table metadata column, false otherwise