Pack Function | Teradata Vantage - Pack - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

The Pack function packs data from multiple input columns into a single column. The packed column has a virtual column for each input column. By default, virtual columns are separated by commas and each virtual column value is labeled with its column name.

Pack complements the function Unpack, but you can use it on any columns that meet the input requirements.

Before packing columns, note their data types—you need them if you want to unpack the packed column.

This function does not support locale-based formatting with the SDF file.

The Pack function is a powerful data profiling and cleansing tool that simplifies and organizes data sets. It works by combining data from multiple input columns into a single column. This helps to eliminate redundancy, making data sets more efficient and easier to manage. The resulting packed column includes virtual columns for each input column, which helps to identify the origin of each value and facilitate data cleaning efforts. By default, each virtual column is separated by commas and identified by its column name. This ensures that data is easily traceable and organized for analysis.

The Pack function is particularly useful for working with large data sets, where errors and inconsistencies can be more difficult to spot. By combining input columns into a single packed column, the Pack function can help to identify errors and inconsistencies more easily. Furthermore, the virtual columns created for each input column can assist with data cleaning efforts, making it easier to maintain data consistency and accuracy. In summary, the Pack function is a valuable data cleaning tool that streamlines data management, enhances data quality, and improves overall data organization.