Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2046

Metadata for queries returns wrong precision and scale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.0
    • 4.2.3, 4.9.0
    • None
    • None
    • Phoenix 4.4 and Hbase 1.1

    Description

      We have a query (typical query to a sample foodmart in mondrian)
      select "time_by_day"."the_year" as "c0", "product_class"."product_family" as "c1", sum("sales_fact_1997"."store_cost") as "m0" from "sales_fact_1997" as "sales_fact_1997", "time_by_day" as "time_by_day", "product" as "product", "product_class" as "product_class" where "time_by_day"."the_year" = 1997 and "product_class"."product_family" in ('Drink', 'Food', 'Non-Consumable') and "sales_fact_1997"."time_id" = "time_by_day"."time_id" and "sales_fact_1997"."product_id" = "product"."product_id" and "product"."product_class_id" = "product_class"."product_class_id" group by "time_by_day"."the_year", "product_class"."product_family"

      While getting the metadata for this query in phoenix, sum("sales_fact_1997"."store_cost") returns it as decimal with 0 precision and 0 scale. The orignal store_cost column is decimal(10,4)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pasupathym Pasupathy M
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: