You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "juntaozhang (via GitHub)" <gi...@apache.org> on 2025/05/01 00:50:41 UTC

Re: [PR] [CALCITE-6991] Validator cannot infer type for COALESCE when call is not expanded [calcite]

juntaozhang commented on code in PR #4353:
URL: https://github.com/apache/calcite/pull/4353#discussion_r2069719222


##########
core/src/main/java/org/apache/calcite/sql/validate/implicit/TypeCoercion.java:
##########
@@ -134,6 +134,14 @@ boolean rowTypeCoercion(
    */
   boolean caseWhenCoercion(SqlCallBinding binding);
 
+  /**
+   * Coerces COALESCE statement to one common type.
+   *
+   * <p>Rules: Find common type for all the operands,

Review Comment:
   Got it, thanks for your reminding.



-- 
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-unsubscribe@calcite.apache.org

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