Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5478

Use highest input precision for datetimes in SqlTypeFactoryImpl.leastRestrictive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.34.0
    • core

    Description

      For example: leastRestrictive(TIMESTAMP(3), TIMESTAMP(0)) would be TIMESTAMP(3), not TIMESTAMP(0).

      Some code exists to do this for other types, but not datetimes.

      Attachments

        Issue Links

          Activity

            People

              gian Gian Merlino
              gian Gian Merlino
              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 - 0.5h
                  0.5h