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

Avoid repeated calls to conf.resolver in resolveExpression

    XMLWordPrintableJSON

Details

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

    Description

      Consider a view with a large number of columns (~1000s). When resolving this view, looking at the flamegraph, observed repeated initializations of `conf` to obtain the `resolver` for each column of the view.

      This can be easily optimized to reuse the same resolver (obtained once) for the various calls to `innerResolve` in `resolveExpression`.

      Attachments

        Issue Links

          Activity

            People

              nikhilsheoran-db Nikhil Sheoran
              nikhilsheoran-db Nikhil Sheoran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: