slinkydeveloper opened a new pull request #18524:
URL: https://github.com/apache/flink/pull/18524


   ## What is the purpose of the change
   
   The goal of this PR is to allow performing casting to string of complex types
   
   ## Brief change log
   
   * Add patched `SqlTypeUtil` from calcite. This is required as calcite 
extension point for casting rules (see `SqlTypeCoercionRule`) is limited to 
atomic types. For constructed types, the logic is still hardcoded in 
`SqlTypeUtil`. This is the diff of my patched `SqlTypeUtil`:
   
   ![Screenshot from 2022-01-26 
15-16-08](https://user-images.githubusercontent.com/6706544/151179245-9acee484-5ebd-422d-9dd1-ad6183239d35.png)
   
   * Add test cases
   
   ## Verifying this change
   
   Added test cases
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: yes
   
   ## Documentation
   
     - Does this pull request introduce a new feature? yes
     - If yes, how is the feature documented? not documented
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to