MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / parse_from

Method parse_from

rat-sql-gap/seq2struct/grammars/spider.py:334–341  ·  view source on GitHub ↗
(self, from_, infer_from_conditions=False)

Source from the content-addressed store, hash-verified

332 }
333
334 def parse_from(self, from_, infer_from_conditions=False):
335 return filter_nones({
336 '_type': 'from',
337 'table_units': [
338 self.parse_table_unit(u) for u in from_['table_units']],
339 'conds': self.parse_cond(from_['conds'], optional=True) \
340 if not infer_from_conditions else None,
341 })
342
343 def parse_order_by(self, order_by):
344 if not order_by:

Callers 1

parse_sqlMethod · 0.95

Calls 3

parse_table_unitMethod · 0.95
parse_condMethod · 0.95
filter_nonesFunction · 0.85

Tested by

no test coverage detected