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

Function remove_distinct

evaluation/test-suite-sql-eval/parse.py:139–141  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

137
138
139def remove_distinct(s):
140 toks = [t.value for t in list(sqlparse.parse(s)[0].flatten())]
141 return ''.join([t for t in toks if t.lower() != 'distinct'])
142
143
144def extract_all_comparison_from_node(node: Token) -> List[Comparison]:

Callers 1

eval_exec_matchFunction · 0.90

Calls 1

flattenMethod · 0.80

Tested by

no test coverage detected