You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "olivrlee (via GitHub)" <gi...@apache.org> on 2023/04/13 16:59:54 UTC

[GitHub] [calcite] olivrlee commented on a diff in pull request #3136: [CALCITE-4771] add TRY_CAST function (enabled in MSSQL library)

olivrlee commented on code in PR #3136:
URL: https://github.com/apache/calcite/pull/3136#discussion_r1165806120


##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -431,48 +431,59 @@ protected SqlOperatorFixture fixture() {
         true);
   }
 
-  /** Tests that CAST and SAFE_CAST are basically equivalent but SAFE_CAST is
-   * only available in BigQuery library. */
-  @Test void testCastVsSafeCast() {

Review Comment:
   In this case the behavior of the functions (`SAFE_CAST`, `TRY_CAST`) are identical, it is just named differently across dialects, so I am a fan of the code reuse. 



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