

 从补丁 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/)。

# SVV\$1INTEGRATION\$1TABLE\$1MAPPING
<a name="r_SVV_INTEGRATION_TABLE_MAPPING"></a>

当源数据库、架构、表、列和数据类型与目标字段的标识符值不同时，SVV\$1INTEGRATION\$1TABLE\$1MAPPING 会显示源字段与目标字段之间的映射。

**注意**  
仅针对以下类型的零 ETL 集成才填充此视图：  
AWS Glue 第三方应用程序到 Amazon SageMaker 智能湖仓
Amazon DynamoDB 到 Amazon SageMaker 智能湖仓
有关更多信息，请参阅《AWS Glue 开发人员指南》**中的[零 ETL 集成](https://docs.aws.amazon.com/glue/latest/dg/zero-etl-using.html)。

标识符值从源到目标的转换遵循以下规则：
+ 大写字母会转换为小写。
+ 不是小写字母、数字或下划线（\$1）的字符将转换为下划线（\$1）。
+ 如果与现有标识符值存在冲突，则会在新标识符后面附加通用唯一标识符（UUID）。
+ 如果源标识符值是 Amazon Redshift 关键字，则会在新的标识符后面附加后缀 `_redshift`。

转换后，字符必须是小写字母、数字或下划线（\$1），并且必须与正则表达式模式 `[a-z0-9_]` 匹配。以下示例演示了转换规则：


| 来源 | Target | 备注 | 
| --- | --- | --- | 
| foo | foo | 无转换 | 
| 条形图 | 条形图 |  | 
| fooBar | foobar |  | 
| foo1 | foo1 | 无转换 | 
| foo\$11 | foo\$11 | 无转换 | 
| Bar@1 | bar\$11 |  | 
| foo\$1bar@ | foo\$1bar\$1 |  | 
| 案例 | case\$1redshift |  | 

SVV\$1INTEGRATION\$1TABLE\$1MAPPING 对所有用户均可见。超级用户可以查看所有行；普通用户只能查看其自己的数据。有关更多信息，请参阅 [系统表和视图中的数据可见性](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>

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/redshift/latest/dg/r_SVV_INTEGRATION_TABLE_MAPPING.html)

## 示例查询
<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       |
```