@@ -81,9 +81,9 @@ def get_records_by_options_query_data(
8181 record_data_query = __get_record_data_query (project_id , row_options )
8282
8383 # task columns part
84- classficiation_task_query = ""
84+ classification_task_query = ""
8585 if task_options and sources_options :
86- classficiation_task_query += __columns_by_table_meta_data_query (
86+ classification_task_query += __columns_by_table_meta_data_query (
8787 project_id , tables_meta_data
8888 )
8989
@@ -96,7 +96,7 @@ def get_records_by_options_query_data(
9696 { select_part }
9797 { extraction_appends ["SELECT" ]}
9898 { record_data_query }
99- { classficiation_task_query }
99+ { classification_task_query }
100100 { extraction_appends ["FROM" ]}
101101 WHERE basic_record.project_id = '{ project_id } '
102102 """
@@ -139,7 +139,7 @@ def __extract_table_meta_classification_data(
139139
140140 for source in sources_options :
141141 full_table_name = ""
142- addtional_confidence_table_name = ""
142+ additional_confidence_table_name = ""
143143 tablename_dict = {}
144144 additional_confidence_table = {}
145145
@@ -163,8 +163,8 @@ def __extract_table_meta_classification_data(
163163 tablename_dict ["table_type" ] = "task_data"
164164
165165 if source .get ("type" ) == enums .LabelSource .WEAK_SUPERVISION .value :
166- addtional_confidence_table_name = f"{ full_table_name } _CONFIDENCE"
167- tables_mapping [addtional_confidence_table_name ] = __create_alias ()
166+ additional_confidence_table_name = f"{ full_table_name } _CONFIDENCE"
167+ tables_mapping [additional_confidence_table_name ] = __create_alias ()
168168 additional_confidence_table ["original_table" ] = tables_mapping .get (
169169 full_table_name
170170 )
@@ -176,20 +176,20 @@ def __extract_table_meta_classification_data(
176176 alias = tables_mapping .get (full_table_name )
177177 tables_meta_data [alias ] = tablename_dict
178178 if additional_confidence_table :
179- tables_mapping [addtional_confidence_table_name ] = __create_alias ()
179+ tables_mapping [additional_confidence_table_name ] = __create_alias ()
180180 tables_meta_data [
181- tables_mapping .get (addtional_confidence_table_name )
181+ tables_mapping .get (additional_confidence_table_name )
182182 ] = additional_confidence_table
183183 if with_user_id :
184184 additional_created_by_table = {}
185185 additional_created_by_table ["table_type" ] = "user_data"
186186 additional_created_by_table ["original_table" ] = tables_mapping .get (
187187 full_table_name
188188 )
189- addtional_created_by_name = full_table_name + "__created_by"
190- tables_mapping [addtional_created_by_name ] = __create_alias ()
189+ additional_created_by_name = full_table_name + "__created_by"
190+ tables_mapping [additional_created_by_name ] = __create_alias ()
191191 tables_meta_data [
192- tables_mapping .get (addtional_created_by_name )
192+ tables_mapping .get (additional_created_by_name )
193193 ] = additional_created_by_table
194194 return tables_meta_data , tables_mapping
195195
@@ -243,7 +243,10 @@ def __record_data_by_type(project_id: str, row_options: Dict[str, Any]) -> str:
243243def ___record_data_by_slice (project_id : str , slice_id : str ) -> str :
244244 slice = data_slice .get (project_id , slice_id )
245245 slice_type = slice .slice_type
246- if slice_type == enums .SliceTypes .STATIC_DEFAULT .value :
246+ if (
247+ slice_type == enums .SliceTypes .STATIC_DEFAULT .value
248+ or slice_type == enums .SliceTypes .STATIC_OUTLIER .value
249+ ):
247250 return __record_data_by_static_slice_query (project_id , slice_id )
248251 elif slice_type == enums .SliceTypes .DYNAMIC_DEFAULT .value :
249252 if not slice .filter_data :
0 commit comments