You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by "emptyOVO (via GitHub)" <gi...@apache.org> on 2024/09/06 14:05:10 UTC

[I] [Feature][SDK] Transform support TRUNCATE(numeric1, integer2) function [inlong]

emptyOVO opened a new issue, #11035:
URL: https://github.com/apache/inlong/issues/11035

   ### Description
   
   * parent issue: #10796 
   * from flink sql: https://nightlies.apache.org/flink/flink-docs-release-1.17/zh/docs/dev/table/functions/systemfunctions/#%E7%AE%97%E6%9C%AF%E5%87%BD%E6%95%B0
   * TRUNCATE(numeric1, integer2)--returns the number that intercepts integer2 decimal places. If numeric1 or integer2 is NULL, NULL is returned. If integer2 is 0, the result has no decimal point or fractional part. integer2 can be negative, making the integer2 digit to the left of the decimal point of the value zero. This function can also be used by passing only one numeric1 argument without setting Integer2. If Integer2 is not set, Integer2 is 0. 
   * For example: 
   truncate(42.324, 2)--return 42.32 
   truncate(42.324)--return 42.0
   
   ### Use case
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: dev-unsubscribe@inlong.apache.org.apache.org

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


Re: [I] [Feature][SDK] Transform support TRUNCATE(numeric1, integer2) function [inlong]

Posted by "luchunliang (via GitHub)" <gi...@apache.org>.
luchunliang closed issue #11035: [Feature][SDK] Transform support TRUNCATE(numeric1, integer2) function
URL: https://github.com/apache/inlong/issues/11035


-- 
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: dev-unsubscribe@inlong.apache.org

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