mindsdb_native
mindsdb_native copied to clipboard
Datetime type deductor bug
NOTE: should try and replicate in new lightwood as well
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/controllers/transaction.py", line 213, in _run input_data=self.input_data)
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/controllers/transaction.py", line 170, in _call_phase_module ret = module(self.session, self)(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/base_module.py", line 53, in __call__ ret = self.run(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", line 350, in run answer_arr.append(get_column_data_type([sample_df[x].dropna(), input_data.data_frame[x], x], lmd=self.transaction.lmd))
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", line 204, in get_column_data_type type_dist, subtype_dist, new_additional_info = count_data_types_in_column(data, lmd, col_name)
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", line 153, in count_data_types_in_column type_guess, subtype_guess = type_checker(element)
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py",
line 105, in type_check_sequence if '[' in element:
TypeError: argument of type 'datetime.date' is not iterable