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

Write View Expanded Query to Impala Profiles

    XMLWordPrintableJSON

Details

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

    Description

      When running queries with multi level views, Currently Impala profiles do not log the expanded query with views replaced. This makes it harder to understand the actual tables involved in the query and also to understand the complxity of the views used

      A change would be to write into the query profiles the original query and the same query with all the views replaced with their actual definitions - 

      e.g. 

      Analyzed query: SELECT * from db.table limit 10
      Expanded query: Select * from (select d.c1, d.c2, e.c3 from d inner join (select c3 from f inner join .... ) e on d.c1 = e.c2 left join .....   ) limit 10 

      Attachments

        Activity

          People

            jasonmfehr Jason Fehr
            myloginid@gmail.com Manish Maheshwari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: