@@ -185,6 +185,7 @@ def test_session_management(self, sea_client, mock_http_client, thrift_session_i
185185 session_config = {
186186 "ANSI_MODE" : "FALSE" , # Supported parameter
187187 "STATEMENT_TIMEOUT" : "3600" , # Supported parameter
188+ "QUERY_TAGS" : "team:marketing,dashboard:abc123" , # Supported parameter
188189 "unsupported_param" : "value" , # Unsupported parameter
189190 }
190191 catalog = "test_catalog"
@@ -196,6 +197,7 @@ def test_session_management(self, sea_client, mock_http_client, thrift_session_i
196197 "session_confs" : {
197198 "ansi_mode" : "FALSE" ,
198199 "statement_timeout" : "3600" ,
200+ "query_tags" : "team:marketing,dashboard:abc123" ,
199201 },
200202 "catalog" : catalog ,
201203 "schema" : schema ,
@@ -641,6 +643,7 @@ def test_filter_session_configuration(self):
641643 "TIMEZONE" : "UTC" ,
642644 "enable_photon" : False ,
643645 "MAX_FILE_PARTITION_BYTES" : 128.5 ,
646+ "QUERY_TAGS" : "team:engineering,project:data-pipeline" ,
644647 "unsupported_param" : "value" ,
645648 "ANOTHER_UNSUPPORTED" : 42 ,
646649 }
@@ -663,6 +666,7 @@ def test_filter_session_configuration(self):
663666 "timezone" : "UTC" , # string -> "UTC", key lowercased
664667 "enable_photon" : "False" , # boolean False -> "False", key lowercased
665668 "max_file_partition_bytes" : "128.5" , # float -> "128.5", key lowercased
669+ "query_tags" : "team:engineering,project:data-pipeline" ,
666670 }
667671
668672 assert result == expected_result
@@ -683,12 +687,14 @@ def test_filter_session_configuration(self):
683687 "ansi_mode" : "false" , # lowercase key
684688 "STATEMENT_TIMEOUT" : 7200 , # uppercase key
685689 "TiMeZoNe" : "America/New_York" , # mixed case key
690+ "QueRy_TaGs" : "team:marketing,test:case-insensitive" ,
686691 }
687692 result = _filter_session_configuration (case_insensitive_config )
688693 expected_case_result = {
689694 "ansi_mode" : "false" ,
690695 "statement_timeout" : "7200" ,
691696 "timezone" : "America/New_York" ,
697+ "query_tags" : "team:marketing,test:case-insensitive" ,
692698 }
693699 assert result == expected_case_result
694700
0 commit comments