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

Incorrect return type for BigQuery TRUNC

    XMLWordPrintableJSON

Details

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

    Description

      The BigQuery docs state that when the TRUNC function is provided an integer argument, it should return a double. However, we currently have the return type set to ARG0_NULLABLE. We should probably adjust this to ARG0_EXCEPT_INTEGER_NULLABLE similar to CALCITE-5747

      This change also adjusts the NULLABILITY for CEIL_BIG_QUERY and FLOOR_BIG_QUERY as I incorrectly set these with I implemented CALCITE-5747

      Attachments

        Issue Links

          Activity

            People

              tanclary Tanner Clary
              tanclary Tanner Clary
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: