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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment