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

Date functions with vectorization is returning wrong results

    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 gopalv, sseth, sershe

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: