def convert_type(self, type):
<EOL>mapping = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:date>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:object>': None,<EOL>'<STR_LIT:string>': '<STR_LIT>',<EOL>'<STR_LIT:time>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': None,<EOL>}<EOL>if type not in mapping:<EOL><INDENT>message = '<STR_LIT>' % type<EOL>raise tableschema.exceptions.StorageError(message)<EOL><DEDENT>return mapping[type]<EOL>
Convert type to BigQuery