

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 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/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# SVV\_INTEGRATION\_TABLE\_MAPPING
<a name="r_SVV_INTEGRATION_TABLE_MAPPING"></a>

當這些欄位的識別碼值不同時，SVV\_INTEGRATION\_TABLE\_MAPPING 會顯示來源資料庫、結構描述、資料表、欄和資料類型與目標之間的映射。

**注意**  
此檢視只會針對下列類型的零 ETL 整合填入：  
AWS Glue Amazon SageMaker Lakehouse 的第三方應用程式
Amazon DynamoDB 至 Amazon SageMaker 資料湖倉
如需詳細資訊，請參閱《AWS Glue 開發人員指南》**中的[零 ETL 整合](https://docs.aws.amazon.com/glue/latest/dg/zero-etl-using.html)。

從來源到目標的識別碼值轉換遵循下列規則：
+ 大寫字母會轉換為小寫。
+ 非小寫字母、數字或底線 (\_) 的字元會轉換為底線 (\_)。
+ 如果與現有識別碼值發生衝突，則新的識別碼會附加通用唯一識別碼 (UUID)。
+ 如果來源識別碼值是 Amazon Redshift 關鍵字，則新的識別碼會附加字尾 `_redshift`。

轉換後，字元必須是小寫字母、數字或底線 (\_)，並符合規則運算式模式 `[a-z0-9_]`。下列範例示範轉換規則：


| 來源 | Target | 備註 | 
| --- | --- | --- | 
| foo | foo | 無轉換 | 
| 長條圖 | bar |  | 
| fooBar | foobar |  | 
| foo1 | foo1 | 無轉換 | 
| foo\_1 | foo\_1 | 無轉換 | 
| Bar@1 | bar\_1 |  | 
| foo\_bar@ | foo\_bar\_ |  | 
| 案例 | case\_redshift |  | 

所有使用者都可看見 SVV\_INTEGRATION\_TABLE\_MAPPING。超級使用者可以看見所有資料列；一般使用者只能看見自己的資料。如需詳細資訊，請參閱[系統資料表和檢視中資料的可見性](cm_chap_system-tables.md#c_visibility-of-data)。

如需零 ETL 整合的詳細資訊，請參閱《Amazon Redshift 管理指南》**中的[零 ETL 整合](https://docs.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.html)。

## 資料表欄
<a name="r_SVV_INTEGRATION_TABLE_MAPPING-table-columns"></a>


| 欄名稱  | 資料類型  | 說明  | 
| --- | --- | --- | 
| integration\_id | character(128) | 與整合關聯的識別碼。 | 
| source\_database | character(128) | 來源中資料庫的名稱。 | 
| target\_database | character(128) | Amazon Redshift 中接收整合資料的資料庫。 | 
| source\_schema\_name | character(128) | 來源中結構描述的名稱。 | 
| target\_schema\_name | character(128) | Amazon Redshift 中接收整合資料的結構描述。 | 
| source\_table\_name | character(128) | 來源中資料表的名稱。 | 
| target\_table\_name | character(128) | Amazon Redshift 中接收整合資料的資料表。 | 
| source\_column\_name | character(128) | 來源中欄的名稱。 | 
| target\_column\_name | character(128) | Amazon Redshift 中接收整合資料的欄。 | 
| source\_data\_type | character(128) | 來源中欄的資料類型。 | 
| target\_data\_type | character(128) | Amazon Redshift 中接收整合資料的欄資料類型。 | 

## 範例查詢
<a name="r_SVV_INTEGRATION_TABLE_MAPPING-sample-queries"></a>

下列 SQL 命令會顯示從來源到目標的中繼資料值映射。

```
select * from svv_integration_table_mapping;

           integration_id              | source_database | target_database |  source_schema_name | target_schema_name | source_table_name | target_table_name | 
---------------------------------------+-----------------+-----------------+---------------------+--------------------+---------------------------------------+
  99108e72-1cfd-414f-8cc0-0216acefac77 |     mydatabase  |  mydatabase     |  myschema           | myschema           | Mytable           | mytable           | 
  
  
                                       | source_column_name | target_column_name |  source_data_type | target_data_type | 
                                       +--------------------+--------------------+-------------------+------------------+
                                       | Mycolumnname       | mycolumnname       |  Mydatatype       | mydatatype       |
```