Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9746

[Rust][DataFusion] Add FORMAT to explain plan and an easy to visualize format

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • Rust, Rust - DataFusion
    • None

    Description

      As suggested by jorgecarleitao on https://github.com/apache/arrow/pull/7959#pullrequestreview-467291192

      > #### Other formats?
      > One thing I dislike about spark is that EXPLAIN is in a not-so-nice format to parse programmatically. One idea is to allow `explain` to return the result in json. This is e.g. useful to construct a visual graph representation of the plan. One idea would be to support another string parameter, `format`, and make it default to `string` (not necessarily in this PR).

      The typical thing I have used in the past to great effect is graphviz: https://graphviz.org/ and `dot` – so the idea is that we would get a command like:

      EXPLAIN FORMAT GRAPHVIZ SELECT * FROM FOO
      

      which would provide the plan in graphviz format (in addition to text)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alamb Andrew Lamb
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: