impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Ho (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4192: Disentangle Expr and ExprContext
Date Fri, 20 Jan 2017 21:06:33 GMT
Michael Ho has posted comments on this change.

Change subject: IMPALA-4192: Disentangle Expr and ExprContext

Patch Set 4:

Commit Message:

PS4, Line 31: soly
> solely

PS4, Line 39: ignorning
> ignoring
File be/src/exec/

Line 74:     ASSERT_OK(ExprContext::Prepare(build_expr_ctxs_, NULL, desc, &tracker_))
> Missing semi-colon. Should have compiled the tests too.
File be/src/exprs/

PS4, Line 129: RegisterFnContexts
> CreateFnContexts()? I don't think there's any real registration going on he
File be/src/exprs/expr-context.h:

Line 86:   /// Use this interface except for creating ExprContext on a stack.
> It looks like we only do this in two places in ExprTest. Why not change tho

Line 102:   /// Convenience function for closing multiple expr trees.
> Are we closing the expr trees or the contexts? Same for the comments above 
File be/src/exprs/

Line 412: string Expr::DebugString(const vector<ExprContext*>& ctxs) {
> This should probably be moved to ExprContext too, right?
File be/src/exprs/expr.h:

PS4, Line 100:  its
             : /// states
> What is "its states"
expressions' static states

Line 110: /// TODO:
> Remove TODO's while we're here? These seem too non-specific to be useful.

PS4, Line 354: on the expr tree.
> It's really opening the ExprContext and FunctionContexts instead of the exp
It's about initializing ExprContext and FunctionContexts for all nodes in the ExprTree. Comment

Line 358:   /// Subclasses overriding this function should call Expr::Close().
> This really closes the ExprContext instead of the Expr.
Renamed to Expr::CloseContext().

PS4, Line 387: FunctionContext
> FunctionContexts

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Iefdc9aeeba033355cb9497e3a5d2363627dcf2f3
Gerrit-PatchSet: 4
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Michael Ho <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message