Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-858

When we have a view in hive, none of the Information Schema queries work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Metadata, Storage - Hive
    • None

    Description

      Following the below steps can reproduce the error. I attached the lilith logs and data files to the jira

      git.commit.id.abbrev=70fab8c

      hive> DROP TABLE IF EXISTS rankings;
      CREATE EXTERNAL TABLE rankings (
      pageRank INT,
      pageURL STRING,
      avgDuration INT
      )
      ROW FORMAT DELIMITED FIELDS
      TERMINATED BY '|'
      STORED AS TEXTFILE LOCATION "/drill/testdata/views/hive/rankings/";

      CREATE VIEW v1 AS SELECT * FROM RANKINGS;

      drill> select * from INFORMATION_SCHEMA.`TABLES`;

      Note : There could be a lag between creating a view in hive and drill picking it up. So we might need to wait for sometime before hitting the error

      Attachments

        1. rankings.txt
          296 kB
          Rahul Kumar Challapalli
        2. lilith.log
          7 kB
          Rahul Kumar Challapalli
        3. DRILL-858-1.patch
          14 kB
          Venki Korukanti

        Activity

          People

            vkorukanti Venki Korukanti
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: