Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8712

Cross schema query fails when table has index

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.1
    • Component/s: HiveServer2
    • Labels:
      None

      Description

      I have two schemas, default and accesstesting.

      I create a table in the second schema with an index.

      When I query the table using a WHERE clause from the first schema, the query fails:

      use default;
      drop table salary_hive;

      use accesstesting;
      drop table salary_hive;

      use accesstesting;
      create table salary_hive (idnum int, salary int, startdate timestamp, enddate timestamp, jobcode char(20));
      create index salary_hive_idnum_index on table salary_hive(idnum) as 'compact' with deferred rebuild;
      select * from accesstesting.salary_hive where 0=1;

      use default;
      select * from accesstesting.salary_hive where 0=1;

      FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.InvalidTableException: Table not found accesstesting_salary_hive_salary_hive_idnum_index_

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bioliv Bill Oliver
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: