def _get_col_type_dict(self):
    '\n        Return a dict of column name and column type based on self.schema if not None.\n        '
    schema = []
    if isinstance(self.schema, str):
        schema = json.loads(self.schema)
    elif isinstance(self.schema, list):
        schema = self.schema
    elif (self.schema is not None):
        self.log.warning('Using default schema due to unexpected type.Should be a string or list.')
    col_type_dict = {}
    try:
        col_type_dict = {col['name']: col['type'] for col in schema}
    except KeyError:
        self.log.warning('Using default schema due to missing name or type. Please refer to: https://cloud.google.com/bigquery/docs/schemas#specifying_a_json_schema_file')
    return col_type_dict
Return a dict of column name and column type based on self.schema if not None.
def _get_col_type_dict(self):
    '\n        \n        '
    schema = []
    if isinstance(self.schema, str):
        schema = json.loads(self.schema)
    elif isinstance(self.schema, list):
        schema = self.schema
    elif (self.schema is not None):
        self.log.warning('Using default schema due to unexpected type.Should be a string or list.')
    col_type_dict = {}
    try:
        col_type_dict = {col['name']: col['type'] for col in schema}
    except KeyError:
        self.log.warning('Using default schema due to missing name or type. Please refer to: https://cloud.google.com/bigquery/docs/schemas#specifying_a_json_schema_file')
    return col_type_dict