@@ -185,6 +185,7 @@ def test_session_management(self, sea_client, mock_http_client, thrift_session_i
185
185
session_config = {
186
186
"ANSI_MODE" : "FALSE" , # Supported parameter
187
187
"STATEMENT_TIMEOUT" : "3600" , # Supported parameter
188
+ "QUERY_TAGS" : "team:marketing,dashboard:abc123" , # Supported parameter
188
189
"unsupported_param" : "value" , # Unsupported parameter
189
190
}
190
191
catalog = "test_catalog"
@@ -196,6 +197,7 @@ def test_session_management(self, sea_client, mock_http_client, thrift_session_i
196
197
"session_confs" : {
197
198
"ansi_mode" : "FALSE" ,
198
199
"statement_timeout" : "3600" ,
200
+ "query_tags" : "team:marketing,dashboard:abc123" ,
199
201
},
200
202
"catalog" : catalog ,
201
203
"schema" : schema ,
@@ -641,6 +643,7 @@ def test_filter_session_configuration(self):
641
643
"TIMEZONE" : "UTC" ,
642
644
"enable_photon" : False ,
643
645
"MAX_FILE_PARTITION_BYTES" : 128.5 ,
646
+ "QUERY_TAGS" : "team:engineering,project:data-pipeline" ,
644
647
"unsupported_param" : "value" ,
645
648
"ANOTHER_UNSUPPORTED" : 42 ,
646
649
}
@@ -663,6 +666,7 @@ def test_filter_session_configuration(self):
663
666
"timezone" : "UTC" , # string -> "UTC", key lowercased
664
667
"enable_photon" : "False" , # boolean False -> "False", key lowercased
665
668
"max_file_partition_bytes" : "128.5" , # float -> "128.5", key lowercased
669
+ "query_tags" : "team:engineering,project:data-pipeline" ,
666
670
}
667
671
668
672
assert result == expected_result
@@ -683,12 +687,14 @@ def test_filter_session_configuration(self):
683
687
"ansi_mode" : "false" , # lowercase key
684
688
"STATEMENT_TIMEOUT" : 7200 , # uppercase key
685
689
"TiMeZoNe" : "America/New_York" , # mixed case key
690
+ "QueRy_TaGs" : "team:marketing,test:case-insensitive" ,
686
691
}
687
692
result = _filter_session_configuration (case_insensitive_config )
688
693
expected_case_result = {
689
694
"ansi_mode" : "false" ,
690
695
"statement_timeout" : "7200" ,
691
696
"timezone" : "America/New_York" ,
697
+ "query_tags" : "team:marketing,test:case-insensitive" ,
692
698
}
693
699
assert result == expected_case_result
694
700
0 commit comments