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

        Issue Links

          Activity

          Rick Hillegas created issue -
          Daniel John Debrunner made changes -
          Field Original Value New Value
          Link This issue relates to DERBY-673 [ DERBY-673 ]
          Mike Matrigali made changes -
          Component/s SQL [ 11408 ]
          Rick Hillegas made changes -
          Attachment XmlTreeWalker.java [ 12399159 ]
          Rick Hillegas made changes -
          Link This issue is related to DERBY-3946 [ DERBY-3946 ]
          Rick Hillegas made changes -
          Rick Hillegas made changes -
          Attachment z.xml [ 12399659 ]
          Attachment XmlTreeWalker.java [ 12399658 ]
          Rick Hillegas made changes -
          Attachment XmlTreeWalker.java [ 12416568 ]
          Kay Röpke made changes -
          Attachment XmlTreeWalker.java [ 12420786 ]
          Attachment ASTGrapher.java [ 12420787 ]
          Rick Hillegas made changes -
          Link This issue relates to DERBY-4415 [ DERBY-4415 ]
          Rick Hillegas made changes -
          Attachment XmlTreeWalker.java [ 12424206 ]
          Rick Hillegas made changes -
          Mamta A. Satoor made changes -
          Labels derby_triage10_11
          Urgency Normal [ 10052 ]
          Rick Hillegas made changes -
          Link This issue is related to DERBY-6263 [ DERBY-6263 ]
          Gavin made changes -
          Workflow jira [ 12345270 ] Default workflow, editable Closed status [ 12801848 ]

            People

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

              Dates

              • Created:
                Updated:

                Development