Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6186

Store table metadata last modified timestamp in PTable / System.Catalog

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.1.0, 4.16.0
    • None
    • None
    • Introduces a new field in System.Catalog, LAST_DDL_TIMESTAMP, which is the epoch timestamp at which a table or view is created, or last had a column added or dropped. Child views inherit the max ddl timestamp of their ancestors.

    Description

      There are many reasons why it's useful to know when a particular table's metadata was last modified. It's helpful when solving cache coherency problems, and also in order to interact with external schema registries which may have multiple versions of a particular schema and require a timestamp to resolve ambiguities.

      This JIRA will add a last modified timestamp field to System.Catalog, to be updated both when creating a table/view and also when adding or removing a column. Changing purely internal Phoenix properties will not update the timestamp.

      Attachments

        1. PHOENIX-6186-4.x.patch
          62 kB
          Geoffrey Jacoby

        Issue Links

          Activity

            People

              gjacoby Geoffrey Jacoby
              gjacoby Geoffrey Jacoby
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: