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

After shifting CTAS's data, query on CTAS table failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • 1.1.0
    • None

    Description

      A simple query like this:
      create table `ttt` partition by (r_regionkey) as select * from cp.`tpch/region.parquet`;

      Without touching generated data from CTAS, this query select * from `ttt`; works.

      Then, I tried to reorganize the parquet generated by CTAS as:

      -----Q1/ ... .pq
      Q2/ ... .pq
      Q3/ ... .pq

      However, after this manual moving, any query fails. Surprisingly, even after I manually move the data to the original place, the queries which worked before all failed with:

      Error: PARSE ERROR: From line 1, column 15 to line 1, column 19: Table 'ttt' not found

      Attachments

        Activity

          People

            jni Jinfeng Ni
            seanhychu Sean Hsuan-Yi Chu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: