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

MV table is not hit when sum() is applied on decimal column.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      MV table is not hit when sum() is applied on decimal column.

      sql("drop table if exists sum_agg_decimal")
      sql("create table sum_agg_decimal(salary1 decimal(7,2),salary2 decimal(7,2),salary3 decimal(7,2),salary4 decimal(7,2),empname string) stored as carbondata")
      sql("drop materialized view if exists decimal_mv")
      sql("create materialized view decimal_mv as select empname, sum(salary1 - salary2) from sum_agg_decimal group by empname")
      sql("explain select empname, sum( salary1 - salary2) from sum_agg_decimal group by empname").show(false)

      Attachments

        Activity

          People

            akashrn5 Akash R Nilugal
            akashrn5 Akash R Nilugal
            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 - 1h 20m
                1h 20m