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

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

    XMLWordPrintableJSON

    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. ASTGrapher.java
          3 kB
          Kay Röpke
        2. derby-791-01-aa-fromListAndResultColumnList.diff
          2 kB
          Richard N. Hillegas
        3. derby-791-02-aa-printTargetColumnList.diff
          2 kB
          Richard N. Hillegas
        4. XmlTreeWalker.java
          12 kB
          Richard N. Hillegas
        5. XmlTreeWalker.java
          12 kB
          Kay Röpke
        6. XmlTreeWalker.java
          12 kB
          Richard N. Hillegas
        7. XmlTreeWalker.java
          12 kB
          Richard N. Hillegas
        8. XmlTreeWalker.java
          9 kB
          Richard N. Hillegas
        9. z.xml
          8 kB
          Richard N. Hillegas

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: