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

Selecting one complex field and having is null predicate on another complex field can cause error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0, 3.0.0
    • 2.4.1, 3.0.0
    • SQL
    • None

    Description

      The query below can cause error when doing schema pruning:

      val query = sql("select * from contacts")
        .where("name.middle is not null")
        .select(
          "id",
          "name.first",
          "name.middle",
          "name.last"
        )
        .where("last = 'Jones'")
        .select(count("id")
      

      Attachments

        Issue Links

          Activity

            People

              viirya L. C. Hsieh
              viirya L. C. Hsieh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: