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

Date/Time functions are very slow

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • Impala 2.1
    • None
    • Backend
    • None

    Description

      Without string function (to_date()):

      select `Date`, clusterID, count(*) as 'cnt' from FactDailyUser group by `Date`, clusterID order by 1,3
      
      Result: 21984 records
      Execution: 1m 49s
      

      With string function (to_date()):

      select to_date(`Date`), clusterID, count(*) as 'cnt' from FactDailyUser group by to_date(`Date`), clusterID order by 1,3
      
      Result: 21984 records
      Execution: 9m 9s
      

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            ukrzilla_impala_606d Denys Lamanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment