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

Allow 'CAST(numeric AS BOOLEAN)' (if enabled by conformance)

    XMLWordPrintableJSON

Details

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

    Description

      SQL:

      // code placeholder
      select * from xxx where cast(n as boolean)

      In calcite, casting a non-zero number to boolean is always false, which is different with other databases. The other databases shows that casting zero to boolean is false and casting non-zero value to boolean is true.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xuyangzhong xuyang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: