@OnlyIfDescendedFrom(['create_table'])
  def visit_operation(self, tokens, table):
    """Add a column definition to a table declaration.

    This trigger is called for each column definition line within a
    CREATE TABLE definition.  The definition is added to the schema
    cache so that future statements that insert data into the table
    can be verified.
    """
    if 'column_spec' in tokens and tokens in 'column_definition':
      base_type = 'unknown'
      if 'type' in tokens['column_definition']:
        base_type = tokens['column_definition']['type'][0]
      table.AddColumn(tokens['column_spec']['column'][0], base_type)
dataset/ETHPy150Open google/mysql-tools/parser_lib/validator.py/CreateTableChecker.visit_operation/swapped operands of `in`