Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-791

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

    Details

    • Type: Improvement
    • Status: Open
    • Priority: 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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: