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

Function rebuild_cond_unit_val

evaluation/test-suite-sql-eval/evaluation.py:782–795  ·  view source on GitHub ↗
(cond_unit)

Source from the content-addressed store, hash-verified

780
781# Rebuild SQL functions for value evaluation
782def rebuild_cond_unit_val(cond_unit):
783 if cond_unit is None or not DISABLE_VALUE:
784 return cond_unit
785
786 not_op, op_id, val_unit, val1, val2 = cond_unit
787 if type(val1) is not dict:
788 val1 = None
789 else:
790 val1 = rebuild_sql_val(val1)
791 if type(val2) is not dict:
792 val2 = None
793 else:
794 val2 = rebuild_sql_val(val2)
795 return not_op, op_id, val_unit, val1, val2
796
797
798def rebuild_condition_val(condition):

Callers 1

rebuild_condition_valFunction · 0.70

Calls 1

rebuild_sql_valFunction · 0.70

Tested by

no test coverage detected