optimization on product and select working

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@165 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2009-05-12 13:31:25 +00:00
parent 004a6bb84e
commit bc60be3ace

View File

@@ -251,7 +251,7 @@ if __name__=="__main__":
rels["S1"]= relation.relation("/home/salvo/dev/relational/trunk/samples/skillo.csv") rels["S1"]= relation.relation("/home/salvo/dev/relational/trunk/samples/skillo.csv")
print rels print rels
#n=tree("π indice,qq,name (ρ age➡qq,id➡indice (P1-P2))") #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 optimizations.selection_and_product(n,rels)
print n print n