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

Return 0 row, when there is select * from view join another table, and there are duplicate column names.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • None
    • None

    Description

      If we create a view, and do a select * from view join another table T on columns with identical names from the base table of view and from table T, then Drill will incorrectly return 0 rows.

      create view myview as select n_nationkey, n_name, n_regionkey, n_comment from cp.`tpch/nation.parquet`;

      // return 0 rows! Because of column re-naming
      select * from myview v join cp.`tpch/nation.parquet` n on v.n_nationkey = n.n_nationkey;

      Attachments

        Issue Links

          Activity

            People

              jni Jinfeng Ni
              jni Jinfeng Ni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: