{"push_id":1032384378,"size":1,"distinct_size":1,"ref":"refs/heads/decimal-functions-4","head":"23c183f22a65129f31fdbede3d9be2822cf3656e","before":"b9400f3aaf14d868b6810c1289c73d3088117a4a","commits":[{"sha":"23c183f22a65129f31fdbede3d9be2822cf3656e","author":{"email":"5bdea06a2d802aa15001380c881db9ace83f441e@teradata.com","name":"Wojciech Biela"},"message":"\"round\" scalar functions for decimal(p,s)\n\nThere are two variants of this method round(num) and round(num, scale).\n\nThe first is a shorthand for round(num, 0). However currently those\nmethods return different results in terms of output precision and scale.\nDue to an internal temporary limitation (not being able to evaluate the\nscale literal parameter at semantic analysis time) the result scale of\nthe round(num) result is 0, while the precision is fitted to store a\npossible additional digit on the left. The result of round(num, scale)\nis always the original input scale and precision (+1 for the possible\nrounding result).\n\nNegative scale is permitted, allows to clear the positions left of the\ndecimal dot with proper rounding.","distinct":true,"url":"https://api.github.com/repos/Teradata/presto/commits/23c183f22a65129f31fdbede3d9be2822cf3656e"}]}