Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][SDK] Transform SQL supports "trunc" function #11265

Closed
2 tasks done
Zkplo opened this issue Oct 1, 2024 · 0 comments
Closed
2 tasks done

[Feature][SDK] Transform SQL supports "trunc" function #11265

Zkplo opened this issue Oct 1, 2024 · 0 comments
Milestone

Comments

@Zkplo
Copy link
Contributor

Zkplo commented Oct 1, 2024

Description

trunc ( double precision ): Truncates to integer (towards zero)
trunc ( v numeric, s integer ) : Truncates v to s decimal places

Use case

trunc(42.8) → 42
trunc(-42.8) → -42
trunc(42.4382, 2) → 42.43

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@Zkplo Zkplo closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
@aloyszhang aloyszhang added this to the 1.14.0 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants