Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12534

Date functions with vectorization is returning wrong results

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • Vectorization
    • None

    Description

      select c.effective_date, year(c.effective_date), month(c.effective_date) from customers c where c.customer_id = 1000046028;
      
      
      hive> set hive.vectorized.execution.enabled=true;
      hive> select c.effective_date, year(c.effective_date), month(c.effective_date) from customers c where c.customer_id = 1000046028;
      
      2015-11-19      0       0
      
      hive> set hive.vectorized.execution.enabled=false;
      hive> select c.effective_date, year(c.effective_date), month(c.effective_date) from customers c where c.customer_id = 1000046028;
      
      2015-11-19      2015    11
      

      \cc Gopal Vijayaraghavan, Siddharth Seth, Sergey Shelukhin

      Attachments

        1. plan.txt
          7 kB
          Rajesh Balamohan
        2. p26_explain.txt
          8 kB
          Rajesh Balamohan

        Issue Links

        Activity

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

          People

            rajesh.balamohan Rajesh Balamohan Assign to me
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment