Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in recursive Datalog query #571

Open
senderista opened this issue Aug 3, 2017 · 0 comments
Open

Error in recursive Datalog query #571

senderista opened this issue Aug 3, 2017 · 0 comments
Assignees
Labels

Comments

@senderista
Copy link
Contributor

Opened by @akashsa (uwescience/myria-web#318)

When I try to generate a JSON file with the following datalog query i get an error.

sg(X,Y) :- tiny_graph(1,X), tiny_graph(1,Y);
sg(X,Y) :- tiny_graph(A,X), sg(A,B), tiny_graph(B,Y);

The error seems to be due to recursion in second rule: sg(X,Y) :- tiny_graph(A,X), sg(A,B), tiny_graph(B,Y);

Traceback (most recent call last):
File "/opt/google_appengine/lib/webapp2-2.5.2/webapp2.py", line 570, in dispatch
return method(*args, **kwargs)
File "/usr/local/myria-web/appengine/myria_web_main.py", line 467, in get
query, language, self.app.connection, push_sql=push_sql))
File "/usr/local/myria-web/appengine/myria_web_main.py", line 118, in get_logical_plan
return get_plan(query, language, 'logical', connection, push_sql=push_sql)
File "/usr/local/myria-web/appengine/myria_web_main.py", line 86, in get_plan
dlog.fromDatalog(query)
File "/usr/local/myria-web/appengine/raco/init.py", line 19, in fromDatalog
self.logicalplan = self.parsed.toRA()
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 79, in toRA
for r in rules])])
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 89, in compileIDB
plans = [r.toRA(self) for r in rules]
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 374, in toRA
plan = joinsequence.makePlan(conditions, program)
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 125, in makePlan
for t in self.terms]
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 800, in makeLeaf
plan = program.compileIDB(self.name)
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 89, in compileIDB
plans = [r.toRA(self) for r in rules]
File "/usr/local/myria-web/appengine/raco/datalog/model.py", line 295, in toRA
self.fixpoint = algebra.Fixpoint()
TypeError: Can't instantiate abstract class Fixpoint with abstract methods partitioning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants