Gopal Vijayaraghavan created HIVE-23087:
-------------------------------------------

             Summary: UDF: bloom_filter() should use 2nd argument as 
expectedEntries value
                 Key: HIVE-23087
                 URL: https://issues.apache.org/jira/browse/HIVE-23087
             Project: Hive
          Issue Type: Bug
            Reporter: Gopal Vijayaraghavan


{code}
 explain select bloom_filter(sr_ticket_number, 31299272) from store_returns, 
date_dim where sr_returned_date_sk   = d_date_sk  and d_year = 2000 and d_moy  
= 9;

|           PARTITION_ONLY_SHUFFLE [RS_12]           |
|             Group By Operator [GBY_11] (rows=1 width=144) |
|               Output:["_col0"],aggregations:["bloom_filter(_col0, 31299272, 
expectedEntries=0)"] |
|               Select Operator [SEL_9] (rows=2964832193 width=15) |
{code}

fails with

{code}
Caused by: java.lang.IllegalArgumentException: expectedEntries should be > 0
        at 
org.apache.hive.common.util.BloomKFilter.checkArgument(BloomKFilter.java:54)
        at org.apache.hive.common.util.BloomKFilter.<init>(BloomKFilter.java:59)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to