Derby
  1. Derby
  2. DERBY-791

Expose api for printing Abstract Syntax Trees in production (non-debug) servers

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SQL
    • Urgency:
      Normal

      Description

      Currently you can print Abstract Syntax Trees to derby.log by setting the DumpParseTree tracepoint at server startup. E.g.:

      java -cp $CLASSPATH -Dderby.debug.true=DumpParseTree -Dderby.stream.error.logSeverityLevel=0 org.apache.derby.tools.ij z.sql

      This can be a useful debugging tool. However, it only works on debug servers built with the following flags:

      sanity=true
      debug=true

      We should provide some mechanism for printing these trees in production (non-debug) servers.

      1. XmlTreeWalker.java
        9 kB
        Rick Hillegas
      2. derby-791-01-aa-fromListAndResultColumnList.diff
        2 kB
        Rick Hillegas
      3. XmlTreeWalker.java
        12 kB
        Rick Hillegas
      4. z.xml
        8 kB
        Rick Hillegas
      5. XmlTreeWalker.java
        12 kB
        Rick Hillegas
      6. XmlTreeWalker.java
        12 kB
        Kay Röpke
      7. ASTGrapher.java
        3 kB
        Kay Röpke
      8. XmlTreeWalker.java
        12 kB
        Rick Hillegas
      9. derby-791-02-aa-printTargetColumnList.diff
        2 kB
        Rick Hillegas

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Rick Hillegas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development