@@ -81,9 +81,9 @@ def get_records_by_options_query_data(
81
81
record_data_query = __get_record_data_query (project_id , row_options )
82
82
83
83
# task columns part
84
- classficiation_task_query = ""
84
+ classification_task_query = ""
85
85
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 (
87
87
project_id , tables_meta_data
88
88
)
89
89
@@ -96,7 +96,7 @@ def get_records_by_options_query_data(
96
96
{ select_part }
97
97
{ extraction_appends ["SELECT" ]}
98
98
{ record_data_query }
99
- { classficiation_task_query }
99
+ { classification_task_query }
100
100
{ extraction_appends ["FROM" ]}
101
101
WHERE basic_record.project_id = '{ project_id } '
102
102
"""
@@ -139,7 +139,7 @@ def __extract_table_meta_classification_data(
139
139
140
140
for source in sources_options :
141
141
full_table_name = ""
142
- addtional_confidence_table_name = ""
142
+ additional_confidence_table_name = ""
143
143
tablename_dict = {}
144
144
additional_confidence_table = {}
145
145
@@ -163,8 +163,8 @@ def __extract_table_meta_classification_data(
163
163
tablename_dict ["table_type" ] = "task_data"
164
164
165
165
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 ()
168
168
additional_confidence_table ["original_table" ] = tables_mapping .get (
169
169
full_table_name
170
170
)
@@ -176,20 +176,20 @@ def __extract_table_meta_classification_data(
176
176
alias = tables_mapping .get (full_table_name )
177
177
tables_meta_data [alias ] = tablename_dict
178
178
if additional_confidence_table :
179
- tables_mapping [addtional_confidence_table_name ] = __create_alias ()
179
+ tables_mapping [additional_confidence_table_name ] = __create_alias ()
180
180
tables_meta_data [
181
- tables_mapping .get (addtional_confidence_table_name )
181
+ tables_mapping .get (additional_confidence_table_name )
182
182
] = additional_confidence_table
183
183
if with_user_id :
184
184
additional_created_by_table = {}
185
185
additional_created_by_table ["table_type" ] = "user_data"
186
186
additional_created_by_table ["original_table" ] = tables_mapping .get (
187
187
full_table_name
188
188
)
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 ()
191
191
tables_meta_data [
192
- tables_mapping .get (addtional_created_by_name )
192
+ tables_mapping .get (additional_created_by_name )
193
193
] = additional_created_by_table
194
194
return tables_meta_data , tables_mapping
195
195
@@ -243,7 +243,10 @@ def __record_data_by_type(project_id: str, row_options: Dict[str, Any]) -> str:
243
243
def ___record_data_by_slice (project_id : str , slice_id : str ) -> str :
244
244
slice = data_slice .get (project_id , slice_id )
245
245
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
+ ):
247
250
return __record_data_by_static_slice_query (project_id , slice_id )
248
251
elif slice_type == enums .SliceTypes .DYNAMIC_DEFAULT .value :
249
252
if not slice .filter_data :
0 commit comments