Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-573

[C++] Fix several issues in Int128 and Decimal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • C++
    • None

    Description

      Before implementing predicate pushdown for C++ ORC reader, there are some gaps and the scope of this patch is to fix them.

      Int128::toDecimalString() function has used wrong parameter in substr() operations which could lead to wrong string representation of decimal values.

      In addition, bloom filter and decimal column statistics store string representation of decimal values. However, we should trim trailing zeros for these string values. Otherwise, it is inconsistent with Java implementation and hard to do bloom filter checking when decimal value has a different scale in the predicate.

      Lastly, we should support decimal comparison to simplify sargs implementation.

      Attachments

        Issue Links

          Activity

            People

              wgtmac Gang Wu
              wgtmac Gang Wu
              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 - 20m
                  20m