(schema, toks)
| 186 | |
| 187 | |
| 188 | def get_tables_with_alias(schema, toks): |
| 189 | tables = scan_alias(toks) |
| 190 | for key in schema: |
| 191 | assert key not in tables, "Alias {} has the same name in table".format(key) |
| 192 | tables[key] = key |
| 193 | return tables |
| 194 | |
| 195 | |
| 196 | def parse_col(toks, start_idx, tables_with_alias, schema, default_tables=None): |