MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / parse_table_unit

Function parse_table_unit

hardness_eval.py:283–296  ·  view source on GitHub ↗

:returns next idx, table id, table name

(toks, start_idx, tables_with_alias, schema)

Source from the content-addressed store, hash-verified

281
282
283def parse_table_unit(toks, start_idx, tables_with_alias, schema):
284 """
285 :returns next idx, table id, table name
286 """
287 idx = start_idx
288 len_ = len(toks)
289 key = tables_with_alias[toks[idx]]
290
291 if idx + 1 < len_ and toks[idx + 1] == "as":
292 idx += 3
293 else:
294 idx += 1
295
296 return idx, schema.idMap[key], key
297
298
299def parse_value(toks, start_idx, tables_with_alias, schema, default_tables=None):

Callers 1

parse_fromFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected