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

DECIMAL TYPE DESC index compare wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Invalid
    • 4.8.1
    • None
    • None

    Description

      I created decimal type descending index column. Some case compare result is odd.

      1. table schema
        CREATE TABLE IF NOT EXISTS test_tbl2 (
        num DECIMAL NOT NULL
        CONSTRAINT pk PRIMARY KEY (num DESC)
        )
        ;
      1. explain query
        explain
        select * from test_tbl2
        where
        num >= 1498755000000 and num <= 1498755999000;
      1. explain result
        DEGENERATE SCAN OVER TEST_TBL2

      Attachments

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              skoh5 steve, Oh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: