Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-1915

support adding/retrieving comments to SQL objects

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • 2.3
    • None
    • None

    Description

      It is desired to have compatible capability of Oracle's syntax to add/get comments to SQL objects, like tables and columns, etc.

      QiFan give a very good initial design for this:
      1. add a new type for column TEXT_TYPE in meta-table TRAFODION."MD".TEXT, say COMMENT_TYPE;
      2. allow COMMENT ON syntax in the parser;
      3. convert the content of COMMENT ON stmt into insertion/update of a row(s) in the TEXT meta-data table for the SQL object in question;
      4. write a UDF to show the comment easily for a SQL object, by hiding the join of the meta-data TEXT and OBJECTS table.

      Can be done increamentally since there are a lot of SQL objects. And multiple changes to different components.

      Attachments

        Activity

          People

            ovis_poly liu ming
            ovis_poly liu ming
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: