You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It shows me the following error
Traceback (most recent call last):
File "test.py", line 9, in
ra = one_statement_from_string(stmt)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/parse.py", line 262, in one_statement_from_string
ast = ASTBuilder().visit(tree)
File "/home/alajeb/.local/lib/python3.6/site-packages/antlr4/tree/Tree.py", line 34, in visit
return tree.accept(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/RAParser.py", line 1745, in accept
return visitor.visitStatement(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/parse.py", line 247, in visitStatement
return self.visit(ctx.getChild(0))
File "/home/alajeb/.local/lib/python3.6/site-packages/antlr4/tree/Tree.py", line 34, in visit
return tree.accept(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/RAParser.py", line 972, in accept
return visitor.visitProjectExpr(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/parse.py", line 175, in visitProjectExpr
return radb.ast.Project(self.visit(ctx.listOfValExprs()), self.visit(ctx.relExpr()))
AttributeError: module 'radb' has no attribute 'ast'
The text was updated successfully, but these errors were encountered:
I have the following code:
import radb.parse dd = {} dd["Person"] = {"name": "string", "age": "integer", "gender": "string"} dd["Eats"] = {"name": "string", "pizza": "string"} stmt = """\project_{Person.name, Eats.pizza} \select_{Person.name = Eats.name}(Person \cross Eats);""" ra = radb.parse.one_statement_from_string(stmt) print(ra)
It shows me the following error
Traceback (most recent call last):
File "test.py", line 9, in
ra = one_statement_from_string(stmt)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/parse.py", line 262, in one_statement_from_string
ast = ASTBuilder().visit(tree)
File "/home/alajeb/.local/lib/python3.6/site-packages/antlr4/tree/Tree.py", line 34, in visit
return tree.accept(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/RAParser.py", line 1745, in accept
return visitor.visitStatement(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/parse.py", line 247, in visitStatement
return self.visit(ctx.getChild(0))
File "/home/alajeb/.local/lib/python3.6/site-packages/antlr4/tree/Tree.py", line 34, in visit
return tree.accept(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/RAParser.py", line 972, in accept
return visitor.visitProjectExpr(self)
File "/home/alajeb/.local/lib/python3.6/site-packages/radb/parse.py", line 175, in visitProjectExpr
return radb.ast.Project(self.visit(ctx.listOfValExprs()), self.visit(ctx.relExpr()))
AttributeError: module 'radb' has no attribute 'ast'
The text was updated successfully, but these errors were encountered: