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

Cast literal to interval gives the wrong result if literal is casted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.39.0
    • None

    Description

      Expression:

      cast(cast(1 as integer) as interval minute)
      

      Returns 17 minutes instead of 1 minute.

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: