From bc60be3ace558cb54dc26c0731b7c03d27276239 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Tue, 12 May 2009 13:31:25 +0000 Subject: [PATCH] optimization on product and select working git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@165 014f5005-505e-4b48-8d0a-63407b615a7c --- relational/optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relational/optimizer.py b/relational/optimizer.py index 26b2a3e..994d4e2 100644 --- a/relational/optimizer.py +++ b/relational/optimizer.py @@ -251,7 +251,7 @@ if __name__=="__main__": rels["S1"]= relation.relation("/home/salvo/dev/relational/trunk/samples/skillo.csv") print rels #n=tree("π indice,qq,name (ρ age➡qq,id➡indice (P1-P2))") - n=tree("σ id==3 and id==indice and indice==2 and name==5(P1 * S1)") + n=tree("σ id==3 and id==indice and indice==2 and name==5 or name<2(P1 * S1)") print optimizations.selection_and_product(n,rels) print n