Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5356

Move Expr's fragment local states from ExprContext to Expr

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.8.0
    • None
    • Backend
    • None

    Description

      Currently, Exprs' FRAGMENT_LOCAL states are stored in their FunctionContext which is part of ExprContext. Usually, these states are evaluated during Prepare() phase of ExprContext.

      Once https://gerrit.cloudera.org/#/c/5483 is committed, these fragment local states will be initialized as part of the expression evaluators' initialization. Ideally, these states should be initialized once and stashed along with the Expr stored in the fragment states instead of having one copy of it per fragment instance. Note that some of these FRAGMENT_LOCAL states are not exactly cheap to initialize (e.g. LIKE predicate may allocate a RE object with the compiled regexp).

      Attachments

        Issue Links

          Activity

            People

              kwho Michael Ho
              kwho Michael Ho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: