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

Column metadata doesn't hide tenant column on tenant-specific connections.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.0, 3.2.0
    • None
    • None

    Description

      connection.getMetaData().getColumns(...) always returns all columns.

      For multi-tenant tables it would make more sense if the first PK (the tenant-id column) would be excluded. If we do this the number of columns returned would match the number of columns you get when executing a "select *" query.

      Attachments

        1. PHOENIX-1271.patch
          8 kB
          Bruno Dumon
        2. PHOENIX-1271.patch
          8 kB
          Bruno Dumon
        3. TenantColumnFilteringResultSet.java
          28 kB
          Bruno Dumon

        Activity

          People

            Unassigned Unassigned
            karel1980 Karel Vervaeke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: