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

The implementation of the Log library operator does not match the actual dialect behavior.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 1.36.0
    • None
    • core

    Description

      The implementation of the Log library operator does not match the actual dialect behavior.

      For example, when log10(0) returns null in mysql and spark, but log10(0) returns error in postgres, neither is calcite's -Intity

      postgres=# select log10(0);
      ERROR:  cannot take logarithm of zero
      postgres=# select log(2,0);
      ERROR:  cannot take logarithm of zero
      
       

      Attachments

        Activity

          People

            caicancai Caican Cai
            caicancai Caican Cai
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: