Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2329

Between 0.06 - 0.01 and 0.06 + 0.01, returns incorrect result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.0.0
    • None
    • None

    Description

      A TPC-H query returns incorrect result:

      select
          sum(l_saleprice) as revenue
      from
          v_lineitem
      where
          l_shipdate >= '1993-01-01'
          and l_shipdate < '1994-01-01'
          and l_discount between 0.06 - 0.01 and 0.06 + 0.01
          and l_quantity < 25;
      

      The result becomes correct if change condition to below

          and l_discount between 0.05 and 0.07
      

      Attachments

        Issue Links

          Activity

            People

              liukaige Kaige Liu
              liyang.gmt8@gmail.com liyang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: