[ https://issues.apache.org/jira/browse/CALCITE-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tanner Clary resolved CALCITE-5874. ----------------------------------- Resolution: Fixed The fix for this was included in [76ba489 |https://github.com/apache/calcite/commit/76ba489c137f7a65f8e0497d3f9041debe3118b3], I am going to close the separate pull request. thanks for the fix, [~taoran]! > Add withReturnTypeInference copy method for SqlBasicFunction > ------------------------------------------------------------ > > Key: CALCITE-5874 > URL: https://issues.apache.org/jira/browse/CALCITE-5874 > Project: Calcite > Issue Type: Improvement > Components: core > Affects Versions: 1.34.0 > Reporter: Ran Tao > Assignee: Ran Tao > Priority: Major > Labels: pull-request-available > Fix For: 1.36.0 > > > some sql functions have same sqlkind and name but with different return types. > e.g. Soundex function, calcite and bigquery return varchar(4), however spark > return non-fixed length. If we want reuse Soundex, we can only use create > method to pass all parameters, it's a bit bloated. > If we add a `withReturnTypeInference()`, we can simply use this to copy from > existed functions. -- This message was sent by Atlassian Jira (v8.20.10#820010)