Taras Bobrovytsky has posted comments on this change.

Change subject: IMPALA-5188: Add slot sorting in TupleDescriptor::LayoutEquals()
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/6610/1/be/src/runtime/descriptors.cc
File be/src/runtime/descriptors.cc:

Line 344:   // The vectors get copied because we intend to sort them and it is 
better to keep this
> Can you point out an example of where that assumption is used? This all see
Well, for example it's used here:
http://github.mtv.cloudera.com/CDH/Impala/blob/cdh5-trunk/be/src/exec/topn-node-ir.cc#L40

The expressions here: sort_exec_exprs_.sort_tuple_slot_expr_ctxs() should be in 
the same order as the slots in output tuple.

This causes a DCHECK in topn codegen:
Otherwise it hits a DCHECK: tuple.cc:379] Check failed: slot_desc->type().type 
== TYPE_NULL || slot_desc->type() == materialize_expr_ctxs[i]->root()->type()


-- 
To view, visit http://gerrit.cloudera.org:8080/6610
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I426ad244678dbfe517262dfb7bbf4adc0247a35e
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Taras Bobrovytsky <[email protected]>
Gerrit-Reviewer: Alex Behm <[email protected]>
Gerrit-Reviewer: Dan Hecht <[email protected]>
Gerrit-Reviewer: Michael Brown <[email protected]>
Gerrit-Reviewer: Taras Bobrovytsky <[email protected]>
Gerrit-HasComments: Yes

Reply via email to