Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4552

During inference, treat decimal literals as Double when planner.enable_decimal_data_type is off

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None

    Description

      In SQL standard, decimal literals (e.g., 1.2, 2.5, etc) are Decimal type. In Drill, when `planner.enable_decimal_data_type` is off, they are treated as Double.

      However, the current inference mechanism is "not to do any inference if the operand is Decimal type". (To be more exact, treat them as ANY type and defer to the execution to make the decision.)

      The mechanism can be improved by treating decimal literals as Double when `planner.enable_decimal_data_type` is off.

      Attachments

        Issue Links

          Activity

            People

              seanhychu Sean Hsuan-Yi Chu
              seanhychu Sean Hsuan-Yi Chu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: