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

Explicit CASTs by user are not applied.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      For some reason casting is not working correctly with aggregate functions.

      for example:

      SELECT CAST(AVG(double_column) AS float) FROM foo GROUP BY group_coulmn;
      

      does not apply the cast. We currently have to circumvent this by using following dummy construct.

      SELECT CAST( (AVG(double_column) + 0.0) AS float) FROM foo GROUP BY group_coulmn;
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danny0405 Danny Chen
                Reporter:
                psockali Pressenna
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: