def convert_row(self, keyed_row, schema, fallbacks):
for key, value in list(keyed_row.items()):<EOL><INDENT>field = schema.get_field(key)<EOL>if not field:<EOL><INDENT>del keyed_row[key]<EOL><DEDENT>if key in fallbacks:<EOL><INDENT>value = _uncast_value(value, field=field)<EOL><DEDENT>else:<EOL><INDENT>value = field.cast_value(value)<EOL><DEDENT>keyed_row[key] = value<EOL><DEDENT>return keyed_row<EOL>
Convert row to SQL