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

Get/Print the Cypher query AST in Morpheus #944

Open
MohamedRagabAnas opened this issue Apr 23, 2020 · 1 comment
Open

Get/Print the Cypher query AST in Morpheus #944

MohamedRagabAnas opened this issue Apr 23, 2020 · 1 comment

Comments

@MohamedRagabAnas
Copy link

Hello,
I'm asking is there a way to get/print the AST of the passed cypher query in Morpheus as a string or an object.

Thanks in advance for your reply!

@s1ck
Copy link
Contributor

s1ck commented May 6, 2020

Hi Mohammed,
there are different system properties that can be set to pretty print intermediate stages of the query execution. For example:

ir.explainIr
morpheus.explain
cora.explainRelational
cora.explainOptimizedRelational

Named very inconsistently tbh ..

I think there is no flag to print the AST, if you just want a string representation, you could output the statement in org/opencypher/okapi/relational/api/graph/RelationalCypherSession.scala:146.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants