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

Write View Expanded Query to Impala Profiles

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jasonmfehr Jason Fehr
            myloginid@gmail.com Manish Maheshwari

            Dates

              Created:
              Updated:

              Slack

                Issue deployment