Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-962

The extended view definition SQL text in Views created by Impala should always have fully-qualified table names.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.3
    • Impala 1.4
    • None
    • None

    Description

      The following sequence of actions should work, but currently doesn't:

      [localhost:21000] > use functional;
      Query: use functional
      [localhost:21000] > create view v1 as (select * from alltypes);
      Query: create view v1 as (select * from alltypes)
      
      Returned 0 row(s) in 0.58s
      [localhost:21000] > use default;
      Query: use default
      [localhost:21000] > select * from functional.v1;
      Query: select * from functional.v1
      ERROR: AnalysisException: Table does not exist: default.alltypes
      

      The reason is that toSql() doesn't always produce fully-qualified table names.

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: