python-3.x - AWS Redshift : How to describe a library created in redshift?

标签 python-3.x amazon-web-services amazon-s3 amazon-redshift

我正在使用 python udfs。这些 udf 使用某些 python 库。我已将这些库的轮子存储在 s3 中。我创建了要从这些库中使用的函数,因此我使用以下语法在 redshift 中创建了库:

CREATE [ OR REPLACE ] LIBRARY library_name LANGUAGE plpythonu
FROM
{ 'https://file_url'
| 's3://bucketname/file_name'
authorization
  [ REGION [AS] 'aws_region']
}

如果我必须验证轮子是否是最新的,请帮助我如何描述该库的定义?

最佳答案

来自PG_LIBRARY - Amazon Redshift :

Stores information about user-defined libraries

select * from pg_library;

name       | language_oid | file_store_id | owner
-----------+--------------+---------------+------
f_urlparse |       108254 |          2000 |   100

关于python-3.x - AWS Redshift : How to describe a library created in redshift?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54836275/

相关文章:

python-3.x - Py4JJavaError : An error occurred while calling o37. 显示字符串。 Spark & python 3

python - 在解释器忙碌时询问 Jedi/Auto Complete 信息时 Emacs 卡住

amazon-web-services - 使用一个堆栈的输出作为具有 SAM 或 Cloudformation 的其他堆栈中 lambda 的环境变量

amazon-web-services - 使用 CDK 中的默认值填充 dynamodb 表

javascript - 通过预签名 url 上传 AWS S3 返回 400 错误请求

php - 来自静态文件的 HLS 直播

amazon-web-services - 如何使用 AWS CLI 删除 S3 存储桶中的多个文件

python - 在 Python 3 中为 urllib.request.urlopen 更改用户代理

Python - 将字典打印为带有标题的水平表

php - Elasticache PHP Redis AWS 在 Laravel 中移动异常