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

Disallow creation of view over HBase table if PK not specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.15.0, 5.1.0
    • None

    Description

      We currently allow a Phoenix view to be defined over an HBase table without specifying a primary key.

      To repro, create an HBase table in the HBase shell:

       create 'hb1', 'f1'
      

      Then create a view in Phoenix:

      create view "hb1"("f1".a varchar);
      

      This should yield an error, as we haven't specified a primary key.

      Attachments

        1. PHOENIX-2265-master.patch
          5 kB
          Xinyi Yan
        2. PHOENIX-2265-4.x-HBase-1.4.patch
          5 kB
          Xinyi Yan
        3. PHOENIX-2265.patch
          4 kB
          Xinyi Yan
        4. PHOENIX-2265.patch
          5 kB
          Xinyi Yan

        Issue Links

          Activity

            People

              yanxinyi Xinyi Yan
              jamestaylor James R. Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h