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

IndexScrutinyTool generates malformed query due to incorrect table name(s)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 4.14.0, 5.0.0
    • None
    • None

    Description

      HADOOP_CLASSPATH="/usr/local/lib/hbase/conf:$(hbase mapredcp)" hadoop jar /usr/local/lib/phoenix-5.0.0-SNAPSHOT/phoenix-5.0.0-SNAPSHOT-client.jar org.apache.phoenix.mapreduce.index.IndexScrutinyTool -dt J -it INDEX1

      This ends up running queries like SELECT ... FROM .J and SELECT ... FROM .INDEX1.

      This is because SchemaUtil.getQualifiedTableName is not properly handling an empty schema name, only a null schema name.

      Attachments

        1. PHOENIX-4678.diff
          0.8 kB
          Josh Elser

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: