impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Tauber-Marshall (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4731: Crash when sorting on non-deterministic expr
Date Wed, 08 Feb 2017 03:47:17 GMT
Thomas Tauber-Marshall has posted comments on this change.

Change subject: IMPALA-4731: Crash when sorting on non-deterministic expr

Patch Set 2:

Commit Message:

Line 7: IMPALA-4731: Crash when sorting on non-deterministic expr
> This also may fix IMPALA-4728 or IMPALA-397.
It does fix IMPALA-397

It doesn't fix IMPALA-4728 as creation of the SortInfo for analytic functions doesn't go through
this code path.

Greg said that the main motivation behind IMPALA-4728, to_date() being slow, has been fixed
now, so I think we can hold off on dealing with that one for now.
File fe/src/main/java/org/apache/impala/analysis/

Line 194:         // entirely if this eliminates all the ordering exprs.
> This is a weird corner case case, but I think we should drop LiteralExprs i

Line 207:         materializedOrderingExprs.add(materializedRef);
> I think we only need to substitute the SlotRefs in the first branch of the 
File tests/query_test/

Line 162:   def test_order_by_random(self):
> I think the example in IMPALA-397 would also be a good test - there rand() 

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I5dcda32fc7770d42fc500ce87fc54d58e5b5dc00
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Thomas Tauber-Marshall <>
Gerrit-Reviewer: Thomas Tauber-Marshall <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message