myui opened a new pull request #216: [HIVEMALL-121] Add -libsvm formatting option to feature_hashing UDF URL: https://github.com/apache/incubator-hivemall/pull/216 ## What changes were proposed in this pull request? Add `-libsvm` formatting option for `feature_hashing ## What type of PR is it? Improvement ## What is the Jira issue? https://issues.apache.org/jira/browse/HIVEMALL-121 ## How was this patch tested? unit tests, manual tests on EMR ## How to use this feature? ```sql select feature_hashing(array('aaa:1.0','aaa','bbb:2.0'), '-libsvm'); > ["4063537:1.0","4063537:1","8459207:2.0"] select feature_hashing(array('aaa:1.0','aaa','bbb:2.0'), '-features 10 -libsvm'); > ["1:2.0","7:1.0","7:1"] ``` ## Checklist - [x] Did you apply source code formatter, i.e., `./bin/format_code.sh`, for your commit? - [x] Did you run system tests on Hive (or Spark)?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
