

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# Amazon Redshift Serverless 功能概览
<a name="serverless-considerations"></a>

Amazon Redshift Serverless 也支持 Amazon Redshift 预调配数据仓库所支持的大多数功能。以下是它的一些关键功能。


| 功能 | 说明 | 
| --- | --- | 
| **快照** | 您可以将 Amazon Redshift Serverless 或预调配数据仓库的快照还原到 Amazon Redshift Serverless。有关更多信息，请参阅 [快照和恢复点](serverless-snapshots-recovery-points.md)。 | 
| **恢复点** | Amazon Redshift Serverless 每 30 分钟自动创建一个恢复点。这些恢复点将保留 24 个小时。在意外写入或删除之后，您可以使用它们进行还原。从恢复点还原时，Amazon Redshift Serverless 数据库中的所有数据都将还原到较早的时间点。如果需要将恢复点保留较长时间，也可以从恢复点创建快照。有关更多信息，请参阅 [快照和恢复点](serverless-snapshots-recovery-points.md)。 | 
| **基本 RPU 容量** | 您能够以 Redshift 处理单元 (RPU) 为单位设置基本容量。一个 RPU 提供 16 GB 内存。此设置使您能够控制正在使用的资源与工作负载成本之间的平衡。您可以增加此值以增加可用资源并提高查询性能，或者降低此值以限制您的支出。原定设置为 128 个 RPU。您还可以设置使用量限制（例如，每天使用的 RPU）来控制成本。有关更多信息，请参阅 [Amazon Redshift Serverless 的计费](serverless-billing.md)。 | 
| **数据共享的使用限制** | 您可以使用控制台或 API，限制从生产者区域向使用者区域传输的数据量。这些数据传输成本因 AWS 区域而不同，以 TB 为单位测量。有关数据共享的更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[使用控制台实现数据共享入门](https://docs.aws.amazon.com/redshift/latest/dg/getting-started-datashare-console.html)。 | 
| **用户定义的函数 (UDF)** | 您可以在 Amazon Redshift Serverless 中运行用户定义的函数 (UDF)。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[创建用户定义的函数](https://docs.aws.amazon.com//redshift/latest/dg/user-defined-functions.html)。 | 
| **存储过程** | 您可以在 Amazon Redshift Serverless 中运行存储过程。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[创建存储过程](https://docs.aws.amazon.com//redshift/latest/dg/stored-procedure-overview.html)。 | 
| **实体化视图** | 您可以在 Amazon Redshift Serverless 中创建实体化视图。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[创建实体化视图](https://docs.aws.amazon.com//redshift/latest/dg/materialized-view-overview.html)。 | 
| **空间函数** | 您可以在 Amazon Redshift Serverless 中运行空间函数。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[查询空间数据](https://docs.aws.amazon.com//redshift/latest/dg/geospatial-overview.html)。 | 
| **联合查询** | 您可以运行查询，以将数据与 Amazon Redshift Serverless 中的 Aurora DB 集群和 Amazon RDS 数据库连接起来。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[通过联合查询来查询数据](https://docs.aws.amazon.com//redshift/latest/dg/federated-overview.html)。 | 
| **数据湖查询** | 您可以运行查询，以将 Amazon S3 数据湖中的数据与 Amazon Redshift Serverless 连接起来。有关更多信息，请参阅《Amazon Redshift 管理指南》**中的[查询数据湖](https://docs.aws.amazon.com/redshift/latest/mgmt/query-editor-v2-querying-data-lake.html)。 | 
| **HyperLogLog** | 您可以在 Amazon Redshift Serverless 中运行 HyperLogLog 函数。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[使用 HyperlogLog 草图](https://docs.aws.amazon.com//redshift/latest/dg/hyperloglog-overview.html)。 | 
| **跨数据库查询数据** | 您可以通过 Amazon Redshift Serverless 跨数据库查询数据。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[跨数据库查询数据](https://docs.aws.amazon.com//redshift/latest/dg/cross-database-overview.html)。 | 
| **数据共享** | 您可以使用 Amazon Redshift Serverless 访问预调配数据仓库上的数据共享。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[跨集群共享数据](https://docs.aws.amazon.com//redshift/latest/dg/datashare-overview.html)。 | 
| **半结构化数据查询** | 可以通过 Amazon Redshift Serverless 上的 `SUPER` 数据类型来摄取和存储半结构化数据。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[摄取和查询半结构化数据](https://docs.aws.amazon.com//redshift/latest/dg/super-overview.html)。 | 
| **为资源添加标签** | 您可以使用 AWS CLI 或 Amazon Redshift Serverless API，通过与资源相关的元数据来给资源添加标签。有关更多信息，请参阅[标记资源](https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-tagging-resources.html)。 | 
| **机器学习** | 您可以将 Amazon Redshift 机器学习与 Amazon Redshift Serverless 结合使用。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的[使用机器学习](https://docs.aws.amazon.com//redshift/latest/dg/machine_learning.html)。 | 
| **SQL 命令和函数** | 除了一些例外情况（例如 `REBOOT_CLUSTER`），您可以将 Amazon Redshift SQL 命令和函数与 Amazon Redshift Serverless 结合使用。有关更多信息，请参阅《Amazon Redshift 数据库开发人员指南》**中的 [SQL 参考](https://docs.aws.amazon.com//redshift/latest/dg/cm_chap_SQLCommandRef.html)。 | 
| **CloudFormation 资源** | 使用 CloudFormation 模板，您可以部署和更新 Amazon Redshift Serverless 资源。这种集成意味着您可以花更少的时间管理资源，从而将精力集中在应用程序上。有关 Amazon Redshift Serverless 中的 CloudFormation 资源的更多信息，请参阅 [Amazon Redshift Serverless 资源类型参考](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_RedshiftServerless.html)。 | 
| **CloudTrail 资源** | Amazon Redshift Serverless 与 AWS CloudTrail 集成，以提供在 Amazon Redshift Serverless 中执行的操作的记录。CloudTrail 将 Amazon Redshift Serverless 的所有 API 调用作为事件捕获。有关更多信息，请参阅 [CloudTrail for Amazon Redshift Serverless](https://docs.aws.amazon.com/redshift/latest/mgmt/logging-with-cloudtrail.html)。 | 