EmmyMiao87 opened a new issue #2002: Coalesce function match error in tpcds 
URL: https://github.com/apache/incubator-doris/issues/2002
 
 
   **Describe the bug**
   The tpcds query: 49,67,77,80 which has the subquery like 
sum(coalesce(decimal, int)) could not be executed.
   The exception (SUM requires a numeric parameter: 
sum(coalesce(`ss_sales_price` * `ss_quantity`, 0))) will be thrown.
   
   **To Reproduce**
   1. create a table with decimal column.
   2. select sum(coalesce(decimal_column, 1)) from table
   3. palo thrown exception 
   
   **Expected behavior**
   If the value of  decimal_column is notnull return the value of column, else 
return 1.
   

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

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

Reply via email to