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

Date/Time functions are very slow

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Impala 2.1
    • Fix Version/s: None
    • Component/s: Backend
    • Labels:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: