GitHub user takuti opened a pull request:

    https://github.com/apache/incubator-hivemall/pull/124

    [HIVEMALL-157] Return empty list for uninitialized query handler

    ## What changes were proposed in this pull request?
    
    Even though `to_ordered_list` allows (and ignores) NULL inputs, following 
query fails due to NPE:
    
    ```sql
    select to_ordered_list(null, null)
    ```
    > Null Pointer Exception
    
    This PR fixes the problem; now, the function returns empty list in case 
that query handler is uninitialized because of NULL inputs:
    
    > []
    
    ## What type of PR is it?
    
    Bug Fix
    
    ## What is the Jira issue?
    
    https://issues.apache.org/jira/browse/HIVEMALL-157
    
    ## How was this patch tested?
    
    Manually tested on local and EMR Hive
    
    ## Checklist
    
    (Please remove this section if not needed; check `x` for YES, blank for NO)
    
    - [x] Did you apply source code formatter, i.e., `mvn formatter:format`, 
for your commit?
    - [x] Did you run system tests on Hive (or Spark)?


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/takuti/incubator-hivemall 
fix-to_ordered_list-npe

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-hivemall/pull/124.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 #124
    
----
commit 16bd8eb013f4284d0e975c3cc6abd0b90665cf35
Author: Takuya Kitazawa <[email protected]>
Date:   2017-10-30T09:01:30Z

    Return empty list for uninitialized query handler

----


---

Reply via email to