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

AttributeReference equals method only compare name, exprId and dataType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0, 1.3.1, 1.4.0
    • 1.6.0
    • SQL
    • None

    Description

      The AttributeReference "equals" method only accept as different objects with different name, expression id or dataType. With this behavior when I tried to do a "transformExpressionsDown" and try to transform qualifiers inside "AttributeReferences", these objects are not replaced, because the transformer considers them equal.

      I propose to add to the "equals" method this variables:

      name, dataType, nullable, metadata, epxrId, qualifiers

      Attachments

        Activity

          People

            smilegator Xiao Li
            ajnavarro Antonio Jesus Navarro
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: