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

Down cast from int to tinyint generating incorrect value for vectorization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • Vectorization
    • None

    Description

       The following sql scripts generating different result for vectorization disabled and enabled (both for ORC and for parquet).
        drop table test_schema;
        create table test_schema (f int) stored as parquet;
        insert into test_schema values ('99999');
        select cast(f as tinyint) + 1 from test_schema;

      For non-vectorization, the result is -96 while for vectorization mode, it is 100000

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerrychenhf Haifeng Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: