text: {%- macro test_expect_table_columns_to_match_ordered_list(model, column_list, transform="upper") -%}
  {%- if execute -%}
      {%- set column_list = column_list | map(transform) | list -%}
      {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}
  
      {%- set ordered_column_names = column_list | join(", ") -%}
      {%- set ordered_relation_column_names = relation_column_names | join(", ") -%}
      select case when '{{ ordered_column_names }}' = '{{ ordered_relation_column_names }}' then 0 else 1 end
  {%- endif -%}
  {%- endmacro -%}
  