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

Function eval_having

single_eval.py:166–180  ·  view source on GitHub ↗
(pred, label)

Source from the content-addressed store, hash-verified

164
165
166def eval_having(pred, label):
167 pred_total = label_total = cnt = 0
168 if len(pred['groupBy']) > 0:
169 pred_total = 1
170 if len(label['groupBy']) > 0:
171 label_total = 1
172
173 pred_cols = [unit[1] for unit in pred['groupBy']]
174 label_cols = [unit[1] for unit in label['groupBy']]
175 if pred_total == label_total == 1 \
176 and pred_cols == label_cols \
177 and pred['having'] == label['having']:
178 cnt = 1
179
180 return label_total, pred_total, cnt
181
182
183def eval_order(pred, label):

Callers 1

eval_partial_matchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected