Skip to content

Commit 838b477

Browse files
committed
Generated figures for the first batch of results
1 parent 1dd9281 commit 838b477

4 files changed

Lines changed: 1158 additions & 12 deletions

File tree

forms/executor/dbexecutor/dbexecutor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def execute_formula_plan(self, formula_plan: PlanNode) -> pd.DataFrame:
9595
end_time = time.time()
9696
translation_time += end_time - start_time
9797

98+
print(sql_composable.as_string(self.exec_context.conn))
99+
98100
start_time = end_time
99101
if scheduler.has_next_subtree():
100102
sql_str = sql_composable.as_string(self.exec_context.conn)

systests/ICRISAT_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if [ "$#" -ne 1 ]; then
99
fi
1010

1111

12-
$TEST_HOME/run.sh ICRISAT ICRISAT.csv ICRISAT_formula.csv obvdate $1
13-
# $TEST_HOME/run.sh ICRISAT ICRISAT.csv test_formula.csv obvdate $1
12+
# $TEST_HOME/run.sh ICRISAT ICRISAT.csv ICRISAT_formula.csv obvdate $1
13+
$TEST_HOME/run.sh ICRISAT ICRISAT.csv test_formula.csv obvdate $1

systests/formulas/test_formula.csv

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
=SUM(C1:D2, E1:F3)
2-
=SUM(C1:D2, $E$1:F1)
3-
=AVERAGE(C1:D2, $E$1:F1)
4-
=MAX(C1:D2, $E$1:F1)
5-
=C1+D2-E3
6-
=SUM(C1:D2)+E1
7-
=SUMIF(C1:D2, ">15") + E1
8-
=IF(E1>F1, SUM(C1:D2), AVERAGE(E1:F2))
9-
=IF(E1>F1, SUM(C1:D2), LOOKUP(F1, E$1:E$14853, D$1:D$14853, 0))
10-
=IF(F1> 5, C1, IF(F1 < 5, D1, E1))
1+
=LOOKUP(F1, E$1:E$14853, D$1:D$14853, 0)
2+
=LOOKUP(F1, E$1:E$14853, D$1:D$14853, 1)

0 commit comments

Comments
 (0)