-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable truncate Presto function for REAL inputs (#10214)
Summary: Pull Request resolved: #10214 Presto supports both DOUBLE and REAL inputs in 'truncate'. ``` presto:di> show functions like 'truncate'; Function | Return Type | Argument Types | Function Type | Deterministic | Description | Variable Arity | Built In | Temporary> ----------+---------------+-----------------------+---------------+---------------+-------------------------------------------------------------------------+----------------+----------+----------> truncate | decimal(p,s) | decimal(p,s), integer | scalar | true | round to integer by dropping given number of digits after decimal point | false | true | false > truncate | decimal(rp,0) | decimal(p,s) | scalar | true | round to integer by dropping digits after decimal point | false | true | false > truncate | double | double | scalar | true | round to integer by dropping digits after decimal point | false | true | false > truncate | double | double, integer | scalar | true | truncate to double by dropping digits after decimal point | false | true | false > truncate | real | real | scalar | true | round to integer by dropping digits after decimal point | false | true | false > truncate | real | real, integer | scalar | true | truncate to float by dropping digits after decimal point | false | true | false > (6 rows) ``` Reviewed By: amitkdutta Differential Revision: D58635374 fbshipit-source-id: 582d923eff1da405db96efd9e152cfe474fa07ed
- Loading branch information
1 parent
d9315cb
commit f2ce4a5
Showing
5 changed files
with
121 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters