TUDB-Labs / TuDB

A distributed graph database system (GDBMS)
https://tudb-labs.github.io/TuDB/
Apache License 2.0
9 stars 1 forks source link

Improve pretty-print of AST/Logical/Physical tree #89

Open enigma-yang opened 2 years ago

enigma-yang commented 2 years ago

Default Cypher AST tree printing (based on toString) doesn't print as tree structure and there is no annotation of field name. We can build one for easier optimizer development.

Example: https://github.com/neo4j/neo4j/blob/37fc172b19a212358bad4a5145ef3cfa1835f9c1/community/cypher/front-end/ast/src/main/scala/org/neo4j/cypher/internal/ast/prettifier/Prettifier.scala#L219

merlintang commented 2 years ago

+1