Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-3036

Carbon 1.5.0 B010 - Select query fails when min/max exceeds and index tree cached

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • data-query
    • None

    Description

      If configured cache columns and min, max present flag columns is different*, it is possible to get wrong data* due to wrong index is mapped.

      results inconsistent when cache is set but min/max exceeds. Column is dictionary excluded.

      set carbon.minmax.allowed.byte.count=50;

       

      0: jdbc:hive2://192.168.137.14:22550/default> use db01;
      ---------+

      Result

      ---------+
      ---------+
      No rows selected (0.06 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> show tables;
      -------------------------------------------+

      database tableName isTemporary

      -------------------------------------------+

      db01 jinling_localsort_3 false

      -------------------------------------------+
      1 row selected (0.068 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> alter table jinling_localsort_3 set TBLPROPERTIES('COLUMN_META_CACHE'='user_imsi,user_num,dim24');
      ---------+

      Result

      ---------+
      ---------+
      No rows selected (3.495 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> select count from jinling_localsort_3;
      -----------+

      count(1)

      -----------+

      9000000

      -----------+
      1 row selected (2.606 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> select dim24 from jinling_localsort_3 limit 2;
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      dim24

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      E6Phek Hobbit from the Shire and eight companions set out on a journey to destroy the powerful One Ring and save Middle-earth from the Dark Lord Sauron.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
      Q4Plek Hobbit from the Shire and eight companions set out on a journey to destroy the powerful One Ring and save Middle-earth from the Dark Lord Sauron.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      2 rows selected (457.462 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> select count from jinling_localsort_3 where dim24 = 'E6Phek Hobbit from the Shire and eight companions set out on a journey to destroy the powerful One Ring and save Middle-earth from the Dark Lord Sauron.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
      -----------+

      count(1)

      -----------+

      0

      -----------+
      1 row selected (0.871 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> alter table jinling_localsort_3 set TBLPROPERTIES('COLUMN_META_CACHE'='user_imsi,user_num');
      ---------+

      Result

      ---------+
      ---------+
      No rows selected (3.798 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> select count from jinling_localsort_3;
      -----------+

      count(1)

      -----------+

      9000000

      -----------+
      1 row selected (4.162 seconds)
      0: jdbc:hive2://192.168.137.14:22550/default> select count from jinling_localsort_3 where dim24 = 'E6Phek Hobbit from the Shire and eight companions set out on a journey to destroy the powerful One Ring and save Middle-earth from the Dark Lord Sauron.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
      -----------+

      count(1)

      -----------+

      90

      -----------+
      1 row selected (4.515 seconds)

       

      Attachments

        Issue Links

          Activity

            People

              manishnalla1994 MANISH NALLA
              Ram@huawei Ramakrishna S
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 2.5h
                  2.5h