You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Zoram Thanga (Code Review)" <ge...@cloudera.org> on 2017/12/13 00:03:13 UTC

[Impala-ASF-CR] IMPALA-6059: Enhance ltrim()/rtrim() functions to trim any set of characters.

Zoram Thanga has posted comments on this change. ( http://gerrit.cloudera.org:8080/8349 )

Change subject: IMPALA-6059: Enhance ltrim()/rtrim() functions to trim any set of characters.
......................................................................


Patch Set 3:

(1 comment)

Reviving this, after it got bumped down by higher priority tasks. Please take a look at patch set #4.

http://gerrit.cloudera.org:8080/#/c/8349/3/be/src/exprs/string-functions-ir.cc
File be/src/exprs/string-functions-ir.cc:

http://gerrit.cloudera.org:8080/#/c/8349/3/be/src/exprs/string-functions-ir.cc@443
PS3, Line 443:   bitset<256>* unique_chars = new bitset<256>;
             :   unique_chars->set(static_cast<int>(' '), true);
> It seems unnecessary overhead to do this for every row.
Done. This does mean that the old trim functions now require prepare and close functions.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8a5ae3f59762e70c3268a01e14ed57a9e36b8d79
Gerrit-Change-Number: 8349
Gerrit-PatchSet: 3
Gerrit-Owner: Zoram Thanga <zo...@cloudera.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: Michael Ho <kw...@cloudera.com>
Gerrit-Reviewer: Zoram Thanga <zo...@cloudera.com>
Gerrit-Comment-Date: Wed, 13 Dec 2017 00:03:13 +0000
Gerrit-HasComments: Yes