GitHub user liguohuicmss reopened a pull request: https://github.com/apache/zeppelin/pull/2685
[ZEPPELIN-3075]Fix unqiue algo for the web side in pivot.js file. ### What is this PR for? unique() algorithm is not correct in pivot.js file. If the input is `[2, 3, 3, 3, 4, 5]` and the output will be `[2, 3, 3, 4, 5]`. The number `3` is still duplicated. ### What type of PR is it? [Bug Fix] ### Todos * [ ] - Task ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-3075 [ZEPPELIN-3075] ### How should this be tested? This is very easy and no need test. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No You can merge this pull request into a Git repository by running: $ git pull https://github.com/liguohuicmss/zeppelin pivot-unqiue-algo Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/2685.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2685 ---- commit 943e80a96f492267b51392bd7df6dc9a32a0fe1a Author: liguohui <liguo...@cmss.chinamobile.com> Date: 2017-11-23T13:28:50Z Fix unqiue algo for the web side in pivot.js file. commit f996747245ea3e055df903108190760a1d4ce5da Author: liguohui <liguo...@cmss.chinamobile.com> Date: 2017-11-25T05:38:45Z Chart field is also draggable and sortable in the 'keys', 'groups' and 'values' commit fdde39f523dcf85dd2de64ceb10cf1c621d86693 Author: liguohui <liguo...@cmss.chinamobile.com> Date: 2017-11-27T05:10:41Z add unit test for unique algo in pivot.js commit 99cf93da9430c68547f91b14eba5d11e397fc590 Author: liguohui <liguo...@cmss.chinamobile.com> Date: 2017-11-27T05:24:02Z Revert "Chart field is also draggable and sortable in the 'keys', 'groups' and 'values'" This reverts commit f996747245ea3e055df903108190760a1d4ce5da. ---- ---