def restore_row(self, row, schema):
row = list(row)<EOL>for index, field in enumerate(schema.fields):<EOL><INDENT>if self.__dialect == '<STR_LIT>':<EOL><INDENT>if field.type in ['<STR_LIT>', '<STR_LIT:object>']:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>row[index] = field.cast_value(row[index])<EOL><DEDENT>return row<EOL>
Restore row from SQL