impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-1861: Simplify conditionals with constant conditions
Date Wed, 11 Jan 2017 23:22:13 GMT
Tim Armstrong has posted comments on this change.

Change subject: IMPALA-1861: Simplify conditionals with constant conditions

Patch Set 6:

(1 comment)
File fe/src/main/java/org/apache/impala/rewrite/

Line 175:       if (whenExpr instanceof BoolLiteral) {
> Thanks Marcel for the explanation. I checked this in another DB engine, whi
Given the complexity of some of the case/when clauses we see in practice I'm sure some or
many users depend on the current evaluation order, particularly since this is the "obvious"
behaviour. I think we should be careful doing this since my bet is that changing this will
break someone's query that worked before.

If we're going to change this it seems like at a minimum we should add a warning to the documentation
about this and call it out clearly that this has changed in the commit message, release notes,
etc (my personal preference is that we document the pre-existing behaviour and preserve it
by only optimising this when all previous "WHEN" clauses were constant).

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Id70aaf9fd99f64bd98175b7e2dbba28f350e7d3b
Gerrit-PatchSet: 6
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Thomas Tauber-Marshall <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Thomas Tauber-Marshall <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message