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

Cannot use lowername data table name with indextool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.8.0, 5.1.0
    • 5.1.0, 4.16.0
    • None
    • 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.patch
          7 kB
          Sergey Soldatov
        2. test.sh
          2 kB
          Sergey Soldatov
        3. test.sql
          1 kB
          Sergey Soldatov
        4. PHOENIX-3710.002.patch
          20 kB
          Josh Elser
        5. PHOENIX-3710.002.rebased.patch
          21 kB
          Ankit Singhal

        Issue Links

          Activity

            People

              stoty Istvan Toth
              ssabdb Matthew Shipton
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: