From 0af48691e87bf59f37022ac0b9e2a4578e892eff Mon Sep 17 00:00:00 2001 From: Marcus Chok Date: Mon, 2 Dec 2024 16:43:39 -0500 Subject: [PATCH] use _same_identifier for comparison --- src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py b/src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py index b23c203d2a..569898ed2d 100644 --- a/src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py +++ b/src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py @@ -55,7 +55,6 @@ to_identifier, to_quoted_identifier, to_string_literal, - unquote_identifier, ) from snowflake.cli.api.sql_execution import BaseSqlExecutor from snowflake.cli.api.utils.cursor import find_first_row @@ -568,8 +567,7 @@ def get_existing_app_info(self, name: str, role: str) -> dict | None: ) show_obj_row = find_first_row( - show_obj_cursor, - lambda row: row[NAME_COL] == unquote_identifier(name), + show_obj_cursor, lambda row: _same_identifier(row[NAME_COL], name) ) except Exception as err: handle_unclassified_error(