Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10836

Add simplify cast rule

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.1.0
    • Frontend
    • None
    • ghx-label-4

    Description

      For the function cast we can add the following optimizations:

      1. Removes the inner case conversion expressions that are unnecessary, e.g. cast(cast(col as int) as string) => cast(col as string)
      2. Removes unnecessary cast when the input is already the correct type, e.g. col is bigint, cast(col as bigint) => col

      Attachments

        Issue Links

        Activity

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

          People

            skyyws Sheng Wang
            xqhe Xianqing He
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment