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

Wrong results with vectorization enabled

    XMLWordPrintableJSON

Details

    Description

      Repro

      CREATE TABLE `test13`(
        `portfolio_valuation_date` string,
        `price_cut_off_datetime` string,
        `portfolio_id_valuation_source` string,
        `contributor_full_path` string,
        `position_market_value` double,
        `mandate_name` string)
      STORED AS ORC;
      
      INSERT INTO test13 values (
      "2020-01-31",	"2020-02-07T03:14:48.007Z",	"37",	NULL,	-0.26,	"foo");
      
      INSERT INTO test13 values (
      "2020-01-31",	"2020-02-07T03:14:48.007Z",	"37",	NULL,	0.33,	"foo");
      
      INSERT INTO test13 values (
      "2020-01-31",	"2020-02-07T03:14:48.007Z",	"37",	NULL,	-0.03,	"foo");
      
      INSERT INTO test13 values (
      "2020-01-31",	"2020-02-07T03:14:48.007Z",	"37",	NULL,	0.16,	"foo");
      
      INSERT INTO test13 values (
      "2020-01-31",	"2020-02-07T03:14:48.007Z",	"37",	NULL,	0.08,	"foo");
      
      set hive.fetch.task.conversion=none;
      set hive.explain.user=false;
      
      set hive.vectorized.execution.enabled=false;
      select Cast(`test13`.`price_cut_off_datetime` AS date) from test13; <-- produces NULL
      
      
      set hive.vectorized.execution.enabled=true;
      select Cast(`test13`.`price_cut_off_datetime` AS date) from test13; <-- produces non-null values
      

      Attachments

        Issue Links

          Activity

            People

              vgarg Vineet Garg
              vgarg Vineet Garg
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h