prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.06k stars 5.38k forks source link

[Native] Implement key_sampling_percent() #20592

Closed ethanyzhang closed 8 months ago

ethanyzhang commented 1 year ago

https://prestodb.io/docs/current/functions/string.html

majetideepak commented 9 months ago

As noted by @aditi-pandit here https://github.com/facebookincubator/velox/pull/8481#issuecomment-1926402896, this is a SQL function https://github.com/prestodb/presto/blob/master/presto-main/src/main/java/com/facebook/presto/operator/scalar/sql/SimpleSamplingPercent.java and should only need the from_ieee754_64 function.