简体   繁体   English

使用未来 presto 版本的 function

[英]Use function from future presto version

binomial_cdf(numberOfTrials, successProbability, value) → double is available in the current version of Presto, but not in version 0.217 binomial_cdf(numberOfTrials, successProbability, value) → double在当前版本的 Presto 中可用,但在 0.217 版本中不可用

Is there any way I can copy the implementation of this function into my sql code?有什么办法可以将这个 function 的实现复制到我的 sql 代码中吗?


Background:背景:

Athena engine version 2 is based on Presto 0.217. Athena 引擎版本 2 基于 Presto 0.217。

see aws-docs请参阅aws-docs

Athena flavour of Presto does not list CREATE FUNCTION as supported DDL operation. Presto 的 Athena 风格未将CREATE FUNCTION列为受支持的 DDL 操作。 Though you can create and use a user defined function (UDF) referencing some lambda.虽然您可以创建和使用 用户定义的 function (UDF) 引用一些 lambda。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Presto 查询错误:Error reading tail from - Presto query error: Error reading tail from athena presto - 从长到宽的多列 - athena presto - multiple columns from long to wide 调用 Future 的 function 是否也需要是 Future? - Does a function that calls a Future needs to be a Future too? 返回列表<latlng>来自异步 function 但收到 function 仍然认为这是一个未来<list<latlng> > </list<latlng></latlng> - Returning List<LatLng> from async function but receiving function still thinks it's a Future<List<LatLng>> 使用 Presto 的 Coalesce function 与 AWS Athena 上的一行 - Using Presto's Coalesce function with a row on AWS Athena 如何从 onCall firebase function 中提取值并将它们加载到未来的构建器中 - How to extract values from onCall firebase function and load them in future builder flutter 我如何从未来返回列表 - flutter how I return list from future “流”类型的值<list<appuserdata> &gt;' 不能从函数 'users' 返回,因为它的返回类型为 'Future <list<appuserdata> &gt;' </list<appuserdata></list<appuserdata> - A value of type 'Stream<List<AppUserData>>' can't be returned from the function 'users' because it has a return type of 'Future<List<AppUserData>>' function 的矢量重载(提供 function 的手动矢量化版本以供自动矢量化使用) - Vector overload of a function (provide a manually vectorized version of a function for auto-vectorization to use) 未来<map<string, dynamic> &gt; 使用 function 时的类型问题</map<string,> - Future<Map<String, dynamic>> Type issue when using a function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM