Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6822

Multiplier for Temporal round/floor/ceiling functions is not implemented and/or poorly defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We are defining a multiplier parameter for the round/floor/ceil functions for temporal values.

      https://phoenix.apache.org/language/functions.html#trunc

      However, we only actually use that parameter for days, hours, minutes and seconds, but ignore them for weeks, months and years.

      (weeks, months, and years are not mentioned in the documentation)

      Even for days, and hours the implementation is very arbitrary, using the number of days/hours since epoch as a basis for the integer division function (as opposed to day of week, month, year etc. or hour of day)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: