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

Improve Alias.removeNonInheritableMetadata performance

    XMLWordPrintableJSON

Details

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

    Description

      `Alias.removeNonInheritableMetadata(...)` uses `MetadataBuilder`, which does expensive map manipulation (allocation, ++, remove). When `removeNonInheritableMetadata` is frequently called (e.g. wide VIEWs with many Aliases), it significantly slows down the code.

      Attachments

        Issue Links

          Activity

            People

              vladimir.golubev Vladimir Golubev
              vladimir.golubev Vladimir Golubev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: