Open lordpretzel opened 2 years ago
Q17: Works as expected
For, Q16, there are errors in generating sql files from provenance .dl files (both opt and unopt) -- For example: ./src/command_line/gprom -backend postgres -host 127.0.0.1 -user postgres -db semanticopt -port 5463 -passwd test -frontend dl -Osemantic_opt FALSE -Oflatten_dl TRUE -loglevel 3 -Pexecutor sql -queryFile umflint/tpcq16/part.dl
INFO(datalog_model.c:583) after making super variable names unique
prov_part(p_partkey,p1,p2,x1,x2,x3,p3,p4,p5) :- partsupp(p_partkey,ps_suppkey,ps1,ps2,ps3),part(p_partkey,p1,p2,x1,x2,x3,p3,p4,p5),qsizes(x3),((x1 != 'Brand#45')),((x2 NOT LIKE 'MEDIUM POLISHED%')),@qcomplaints(ps_suppkey,v0),@prov_qttlcom(ps_suppkey,v1).
INFO(datalog_model.c:584) after making variable name unique
qcomplaints(s_suppkey,1) :- supplier(s_suppkey,s1,s2,s3,s4,s5,s_comment),((s_comment LIKE '%Customer%Complaints%')).
ERROR (exception.c:145) exception was thrown (RECOVERABLE) datalog_model.c - 284 - <failed assertion: LIST_LENGTH(headBinds) == LIST_LENGTH(hVars)
Error occured (datalog_model.c:284) failed assertion: LIST_LENGTH(headBinds) == LIST_LENGTH(hVars)
EXCEPTION Handler requested us to die because of exception at (datalog_model.c:284)
failed assertion: LIST_LENGTH(headBinds) == LIST_LENGTH(hVars)
Q15 -- p_lineitem_unopt -- still returning 0 rows..
Q11 -- works as expected
Q13 -- works as expected. However, the left outer join is replaced with a natural join. Also, the SQLLite version -- does not have the filter on o_comment..
Q18: lineitem-unopt produces 0 rows..
Q19: works as expected
Q20: works as expected
Q08 -- works as expected Note the SQLLite version is missing a join condition -- o_custkey = c_custkey
Queries that work without optimization
Queries that work with optimization
Queries have results
Q2
Q8
Q15
This is the generated datalog, but the generated SQL is not correct