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

Select with limit displays incorrect resultset after datamap creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.1.0
    • data-query
    • None
    • Spark 2.3.2

    Description

      Steps :-

      create table tab1(id int, name string, dept string) STORED as carbondata;
      create materialized view datamap31 as select a.id, a.name from tab1 a;
      insert into tab1 select 1,'ram','cs';
      insert into tab1 select 2,'shyam','it';
      select a.id, a.name from tab1 a order by a.id limit 1;

      Issue :  

      Select with limit displays incorrect resultset (2 records instead of 1) after datamap creation.

      0: jdbc:hive2://10.20.251.163:23040/default> select a.id, a.name from tab1 a order by a.id limit 1;
      INFO : Execution ID: 558
      -----------

      id name

      -----------

      2 shyam
      1 ram

      -----------
      2 rows selected (0.601 seconds)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            chetdb Chetan Bhat
            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 - 3h 20m
                3h 20m