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

Cannot use lowername data table name with indextool

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.8.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      hbase org.apache.phoenix.mapreduce.index.IndexTool --data-table \"my_lowcase_table\" --index-table INDEX_TABLE --output-path /tmp/some_path
      

      results in:

      java.lang.IllegalArgumentException:  INDEX_TABLE is not an index table for MY_LOWCASE_TABLE
      

      This is despite the data table being explictly lowercased.

      Appears to be referring to the lowcase table, not the uppercase version.

      Workaround exists by changing the tablename, but this is not always feasible.

        Attachments

        1. PHOENIX-3710.002.rebased.patch
          21 kB
          Ankit Singhal
        2. PHOENIX-3710.002.patch
          20 kB
          Josh Elser
        3. test.sql
          1 kB
          Sergey Soldatov
        4. test.sh
          2 kB
          Sergey Soldatov
        5. PHOENIX-3710.patch
          7 kB
          Sergey Soldatov

          Issue Links

            Activity

              People

              • Assignee:
                elserj Josh Elser
                Reporter:
                ssabdb Matthew Shipton
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: