xiaoDjun opened a new issue, #17539:
URL: https://github.com/apache/doris/issues/17539

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   1.1.3-rc02
   
   ### What's Wrong?
   
   When using the UDF in hive to get a doris bitmap representation of a column 
(e.g. bitmap_union, to_bitmap), an NPE occurs if the submitted mapreduce job 
only has map task, no reduce  task. The exception stack is as below:
   
![img_v2_1873e203-a34a-468a-b5e5-8a4a7efd653g](https://user-images.githubusercontent.com/36905671/223427440-10431990-abae-49b3-b389-058b41e4a475.jpg)
   
   
   This is because in BitmapUnionUDAF/ToBitmapUDAF, the `Mode` should be 
`Mode.COMPLETE`, so the `BinaryObjectInspector inputOI` will not be initiated 
here:
   
![image](https://user-images.githubusercontent.com/36905671/223430726-8eec09d4-f6a8-4dde-9943-feea12d108b6.png)
   
   ### What You Expected?
   
   run successfully and get doris representation bitmap result.
   
   ### How to Reproduce?
   
   e.g. creating as temporary function, query and run with only map task, no 
reduce task
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to