def parse_table(fq_table: str) -> Tuple[str, str]:
parts = fq_table.split('<STR_LIT:.>')<EOL>if len(parts) == <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT>', parts[<NUM_LIT:0>]<EOL><DEDENT>elif len(parts) == <NUM_LIT:2>:<EOL><INDENT>return parts[<NUM_LIT:0>], parts[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>raise ValueError<EOL><DEDENT>
Parse a tablename into tuple(<schema>, <table>).

    Schema defaults to doc if the table name doesn't contain a schema.

    >>> parse_table('x.users')
    ('x', 'users')

    >>> parse_table('users')
    ('doc', 'users')