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

Function quick_rej

evaluation/test-suite-sql-eval/exec_eval.py:36–42  ·  view source on GitHub ↗
(result1: List[Tuple], result2: List[Tuple], order_matters: bool)

Source from the content-addressed store, hash-verified

34# is a necessary condition of
35# [result_1 and result_2 are equivalent in denotation]
36def quick_rej(result1: List[Tuple], result2: List[Tuple], order_matters: bool) -> bool:
37 s1 = [unorder_row(row) for row in result1]
38 s2 = [unorder_row(row) for row in result2]
39 if order_matters:
40 return s1 == s2
41 else:
42 return set(s1) == set(s2)
43
44
45# return whether two bag of relations are equivalent

Callers 1

result_eqFunction · 0.85

Calls 1

unorder_rowFunction · 0.85

Tested by

no test coverage detected