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

Table with column that shares name fails upon query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      CREATE TABLE t (t STRING);
      SELECT t FROM t;

      This will result in
      FAILED: Error in semantic analysis: Line 1:7 Ambiguous table alias or column reference 't'

      Similarly
      SELECT t2 FROM t t2;
      will result in the same exception

      SELECT t from t t2;
      will succeed.

      MySQL apparently supports this, so Hive should as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kevinwilfong Kevin Wilfong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: