impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4617: remove IsConstant() analysis from be
Date Wed, 25 Jan 2017 22:31:32 GMT
Alex Behm has posted comments on this change.

Change subject: IMPALA-4617: remove IsConstant() analysis from be

Patch Set 8:

File fe/src/main/java/org/apache/impala/analysis/

Line 262:    * @see org.apache.impala.parser.ParseNode#analyze(org.apache.impala.parser.Analyzer)
> This seemed like the easiest way to enforce the invariant that isAnalyzed_ 
Agree it is the easiest way for now. There's potential for more cleanup, but we can do that

Line 274:    */
> I did attempt to do that before but ran into some problems. Unfortunately i
You are right, we can't fix this yet, unfortunately. The reason is that some exprs may contain
unresolved select-list aliases which can't be analyzed (need to be substituted first).

Line 824:    */

Line 975: 
> Missed the second part of the comment. I added that, except it's actually t
Agree. We need to fix that issue of unanalyzed exprs separately.
File fe/src/main/java/org/apache/impala/analysis/

Line 983:    * - Functions that are not truly constant, but that we don't want to re-evaluate
I'd say now() is truly constant according to your definition (query scope).

now() must return the same value within the same query, those are its semantics. It's not
really about wanting to avoid multiple evaluations.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I24b4c9d6e8e57fd73d906a9c36200e1a84497b90
Gerrit-PatchSet: 8
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message