Function mz_sql::session::vars::compat_translate

source ยท
fn compat_translate<'a, 'b>(
    name: &'a str,
    input: VarInput<'b>,
) -> (&'a str, VarInput<'b>)
Expand description

If the given variable name and/or input is deprecated, return a corresponding updated value, otherwise return the original.

This method was introduced to gracefully handle the rename of the mz_introspection cluster to mz_cluster_server. The plan is to remove it once all users have migrated to the new name. The debug logs will be helpful for checking this in production.