Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15538

Separate decimal implementations into separate sub-classes

    XMLWordPrintableJSON

Details

    Description

      The current implementation of Decimal values have two (somewhat independent) implementations: one is based on Long, while the other is based on BigDecimal.

      This makes the Decmial class not clear (both implementations cluttered in a single class) and less efficient (each method involves a if-else branch).

      So in this issue, we make Decimal an abstract class, and separate the two implementation into two sub-classes. This makes the code clearer and more efficient.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 10m
                  10m