

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

# SYS\_INTEGRATION\_ACTIVITY
<a name="r_SYS_INTEGRATION_ACTIVITY"></a>

SYS\_INTEGRATION\_ACTIVITY 显示有关已完成集成运行的详细信息。

SYS\_INTEGRATION\_ACTIVITY 仅对超级用户可见。有关更多信息，请参阅 [系统表和视图中的数据可见性](cm_chap_system-tables.md#c_visibility-of-data)。

有关零 ETL 集成的信息，请参阅《Amazon Redshift 管理指南》中的[使用零 ETL 集成](https://docs.amazonaws.cn//redshift/latest/mgmt/zero-etl-using.html)。

## 表列
<a name="r_SYS_INTEGRATION_ACTIVITY-table-columns"></a>


| 列名称  | 数据类型  | 说明  | 
| --- | --- | --- | 
| integration\_id | character(128) | 与集成关联的标识符。 | 
| target\_database | character(128) | Amazon Redshift 中接收集成数据的数据库。 | 
| source | character(128) | 集成的源数据。可能的类型包括 MySQL 和 PostgreSQL。 | 
| checkpoint\_name | character(128) | 复制二进制日志坐标的检查点的名称。 | 
| checkpoint\_type | character(16) | 检查点的类型。可能的值包括：snapshot、cdc。 | 
| checkpoint\_bytes | bigint | 此检查点中的字节数。 | 
| last\_commit\_timestamp | timestamp | 上次在此检查点中提交的时间戳。 | 
| modified\_tables | 整数 | 在检查点中修改的表的数量。 | 
| integration\_start\_time | 时间 | 此检查点的集成开始时间 (UTC)。 | 
| integration\_end\_time | 时间 | 此检查点的集成结束时间 (UTC)。 | 

## 示例查询
<a name="r_SYS_INTEGRATION_ACTIVITY-sample-queries"></a>

以下 SQL 命令显示集成日志。

```
select * from sys_integration_activity;

          integration_id              | target_database | source |            checkpoint_name                  | checkpoint_type  | checkpoint_bytes | last_commit_timestamp   | modified_tables |   integration_start_time   |    integration_end_time
--------------------------------------+-----------------+--------+---------------------------------------------+------------------+------------------+-------------------------+-----------------+----------------------------+----------------------------
 76b15917-afae-4447-b7fd-08e2a5acce7b |   demo1         | MySQL  | checkpoints/checkpoint_3_241_3_510.json     |        cdc       |        762       | 2023-05-10 23:00:14.201 |         1       | 2023-05-10 23:00:45.054265 | 2023-05-10 23:00:46.339826
 76b15917-afae-4447-b7fd-08e2a5acce7b |   demo1         | MySQL  | checkpoints/checkpoint_3_16329_3_17839.json |        cdc       |       13488      | 2023-05-11 01:33:57.411 |         2       | 2023-05-11 02:19:09.440121 | 2023-05-11 02:19:16.090492
 76b15917-afae-4447-b7fd-08e2a5acce7b |   demo1         | MySQL  | checkpoints/checkpoint_3_5103_3_5532.json   |        cdc       |        1657      | 2023-05-10 23:13:14.205 |         2       | 2023-05-10 23:13:23.545487 | 2023-05-10 23:13:25.652144
```