walterddr commented on PR #11151:
URL: https://github.com/apache/pinot/pull/11151#issuecomment-1665744935

   i think what's missing is that 
   - calcite supports type hoisting in the fine-grain precision/scale fashion, 
and any decimal literal used in SUM or other agg function can affect the 
behavior of type hoisting. 
   - in Postgres the type conversion doesn't depend on the literals, only the 
operand types.
   
   one solution I can think of is to register our own behavior by adding our 
own OperatorTable and our own return type inference
   
   this way we don't need to worry about the TypeFactory/TypeSystem overrides 
which intricately went through Calcite internal where we don't have direct 
control.  
   


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to