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

Cast(200 as boolean) should return true(consistent with Postgres and Mysql)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 1.35.0
    • None
    • None

    Description

      For the sql :

      select cast(200 as boolean

      The above results are true in Mysql and Postgres.

      But in calcite,the result is false:

      LogicalValues(tuples=[[{ false }]]) 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shenlang LakeShen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: