[英]installing h3 python library on AWS Redshift for usage in an UDF
[英]Alternative to UDF in aws redshift
我正在redshift表上創建視圖,但希望有某種參數可以傳遞,以限制從視圖中獲取的數據。 該表適用於整個月,並且聯接需要很多時間。 我查看了redshift文檔,但它說redshift不支持用戶定義的功能。 除了views / UDF,還有其他選擇嗎?
具體來說,我有一個類似的查詢:
with lookup as
(
Select DISTINCT *
from Table
where property_value = 'myproperty'
AND time_stamp > ‘2015-07-##’
AND time_stamp < ‘2015-07-##’
order by sortkey
)
Select * from lookup where ……..
我想靈活地更改time_stamp。 另外,希望用戶將參數傳遞給創建的視圖並僅針對指定的時間戳獲取數據。
謝謝
在2014年11月的AWS re:Invent會議上的演講包括提及用戶定義函數作為即將推出的功能。
請參閱: AWS re:Invent SDD414-Amazon Redshift深入研究和下一步 (幻燈片19+)
更新:Redshift現在還支持SQL UDF
http://docs.aws.amazon.com/redshift/latest/dg/udf-creating-a-scalar-sql-udf.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.