

 从补丁 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\_TABLE\_ACTIVITY
<a name="r_SYS_INTEGRATION_TABLE_ACTIVITY"></a>

SYS\_INTEGRATION\_TABLE\_ACTIVITY 显示零 ETL 集成的插入、删除和更新活动的详细信息。对于每次完成的摄取都会添加一行。

超级用户可以查看此表中的所有行。

有关更多信息，请参阅[零 ETL 集成](https://docs.amazonaws.cn//redshift/latest/mgmt/zero-etl-using.html)。

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


| 列名称  | 数据类型  | 说明  | 
| --- | --- | --- | 
| integration\_id | character(128) | 与集成关联的标识符。 | 
| checkpoint\_name | character(128) | 检查点的名称。 | 
| target\_database | character(128) | Amazon Redshift 数据库的名称。 | 
| schema\_name | character(128) | Amazon Redshift 架构的名称。 | 
| table\_name | character(128) | 表的名称。 | 
| table\_id | 整数 | 表的标识符。 | 
| record\_time | timestamp | 完成此更改的时间（UTC）。 | 
| transaction\_id | bigint | 事务标识符。 | 
| inserted\_rows | bigint | 摄取插入的行数。 | 
| deleted\_rows | bigint | 摄取删除的行数。 | 
| updated\_rows | bigint | 摄取更新的行数。 | 
| bytes\_ingested | bigint | 摄取的字节数。 | 

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

以下 SQL 命令显示集成的活动。

```
select * from sys_integration_table_activity;

          integration_id              | checkpoint_name | target_database | schema_name |     table_name    | table_id     | record_time                | transaction_id  | inserted_rows  | deleted_rows | updated_rows | bytes_ingested 
--------------------------------------+-----------------+-----------------+-------------+-------------------+--------------+----------------------------+-----------------+----------------+--------------+--------------+---------------
 4798e675-8f9f-4686-b05f-92c538e19629 |                 | sample_test2    |    sample   | SampleTestChannel |  111276      | 2023-05-12 12:40:30.656625 | 7736            |  2             | 0            | 0            | 125
```