pub fn is_system_column(name: &str) -> bool
Expand description

According to folks from Fivetran, checking if a column name is prefixed with a specific string is enough to determine if it’s a system column.

See: https://materializeinc.slack.com/archives/C060KAR4802/p1706557379061899

use mz_fivetran_destination::utils;

// Needs to be prefixed with '_fivetran_' to be considered a system column.
assert!(!utils::is_system_column("timestamp"));
assert!(!utils::is_system_column("_fivetrantimestamp"));
assert!(!utils::is_system_column("my_fivetran_timestamp"));

assert!(utils::is_system_column("_fivetran_timestamp"));