Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-48574

Fix support for StructTypes with collations

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

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      While adding expression walker it was noticed that StructType support is broken. One problem is that `CollationsTypeCasts` is doing a cast in all BinaryExpressions which includes ExtractValue. Consequently, we are unable to extract value if we do a cast there, as ExtractValue only supports nonNullLiterals as extracting keys.

      Attachments

        Activity

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

          People

            mihailo.milosevic Mihailo Milosevic
            mihailo.milosevic Mihailo Milosevic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment