Amazon Redshift 自 2025 年 11 月 1 日起不再支援建立新的 Python UDF。如果您想要使用 Python UDF,請在該日期之前建立 UDF。現有 Python UDF 將繼續正常運作。如需詳細資訊,請參閱部落格文章
SYS_INTEGRATION_TABLE_STATE_CHANGE
SYS_INTEGRATION_TABLE_STATE_CHANGE 會顯示整合的資料表狀態變更日誌。
超級使用者可以查看此資料表中的所有列。
如需詳細資訊,請參閱使用零 ETL 整合。
資料表欄
| 欄名稱 | 資料類型 | 說明 |
|---|---|---|
| integration_id | character(128) | 與整合關聯的識別碼。 |
| database_name | character(128) | Amazon Redshift 資料庫的名稱。 |
| schema_name | character(128) | Amazon Redshift 結構描述的名稱。 |
| table_name | character(128) | 資料表的名稱。 |
| new_state | character(128) | 資料表的狀態。可能值為 Synced、ResyncRequired、ResyncInitiated、Deleted、Failed 以及 ResyncDeleted。 |
| table_last_replicated_checkpoint | character(128) | 目前同步的記錄座標。 |
| state_change_reason | character(256) | 最後狀態轉換的原因。 |
| record_time | timestamp | 此記錄更新的時間 (UTC)。 |
範例查詢
下列 SQL 命令會顯示整合的記錄。
select * from sys_integration_table_state_change;integration_id | database_name | schema_name | table_name | new_state | table_last_replicated_checkpoint | state_change_reason | record_time --------------------------------------+---------------+-------------+------------+-----------+-------------------------------------+---------------------+---------------------------- 99108e72-1cfd-414f-8cc0-0216acefac77 | perfdb | sbtest80t3s | sbtest79 | Synced | {"txn_seq":9834,"txn_id":126597515} | | 2023-09-20 19:39:50.087868 99108e72-1cfd-414f-8cc0-0216acefac77 | perfdb | sbtest80t3s | sbtest56 | Synced | {"txn_seq":9834,"txn_id":126597515} | | 2023-09-20 19:39:45.54005 99108e72-1cfd-414f-8cc0-0216acefac77 | perfdb | sbtest80t3s | sbtest50 | Synced | {"txn_seq":9834,"txn_id":126597515} | | 2023-09-20 19:40:20.362504 99108e72-1cfd-414f-8cc0-0216acefac77 | perfdb | sbtest80t3s | sbtest18 | Synced | {"txn_seq":9834,"txn_id":126597515} | | 2023-09-20 19:40:32.544084 99108e72-1cfd-414f-8cc0-0216acefac77 | perfdb | sbtest40t3s | sbtest23 | Synced | {"txn_seq":9834,"txn_id":126597515} | | 2023-09-20 15:49:05.186209