Detect match_columns automatically