Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5297

With MongoDB, null is returned from timestamp functions if the same function is part of WHERE clause

    Details

      Description

      For example:

      SELECT timestampvalue, second(timestampvalue) as sec FROM bqt1.hugeA WHERE second(timestampvalue) >= 0
      

      This will correctly select rows where second(timestampvalue) >= 0, but the sec column in the result will contain only nulls.

      If I remove the WHERE clause:

      SELECT timestampvalue, second(timestampvalue) as sec FROM bqt1.hugeA;
      

      Then the sec column will be computed correctly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                jmartisk Jan Martiska
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: