Sample data lets you test and configure pipelines without using production data. Upload sample data from a file to include specific characteristics such as duplicates or address errors, or generate sample data directly from your cataloged dataset. Sample data is encrypted and stored securely in the Precisely Cloud or Amazon S3.
The procedures to create and run Data Quality pipelines are the same regardless of storage location (Precisely Cloud or Amazon S3). Note that steps in a pipeline may create fields not included in the sample dataset. If a field created by a pipeline has the same name as a field already in the cataloged dataset, data in that field may overwrite data in the existing field.
Characteristics of a sample file to upload
When uploading sample data, your file must meet these requirements:
- Contains representative data in a text (.txt) or comma-delimited (.csv) format with fields that correspond to some or all of the fields in a mapped schema.
- Can contain up to 10 MB of data.
- Does not have to contain all of the fields from the cataloged dataset.
- Sample columns may be in any order as long as the first row contains field names exactly as they appear in the cataloged dataset. Any column name in the file that does not match a column name in the cataloged dataset creates an error that prevents the upload.
- Uploaded sample data must be in the same format as the data type in
the dataset. For example, depending on the datasource, Date-time
fields are often in ISO format
(
'1969-07-16T20:17:00'). - Fields in a text file may be delimited by the comma (,), period (.), pipe (|), semicolon (;), space ( ), or tab character.
- Text in a field that contains the delimiter may be qualified by single or double quotation characters.
- Line breaks may use the Unix (or OS X) LF character, the Windows CR and LF characters, or the Macintosh CR character.
- The first row must contain delimited field names that match fields specified by the mapped schema.
- The delimited field names and data can be in any order.
Data format guidelines: These guidelines must be followed for data that you want to upload:
-
Must be in the same format as the data type in the dataset. For example, a date-time field is usually in ISO format, such as
DateTime ('2011-12-03T10:15:30'). -
Sample data containing a geospatial column type must include the spatial features in GeoJSON format. In Snowflake, data can be exported to either of the following formats:
- Setting the session before exporting the data:
ALTER SESSION SET GEOGRAPHY_OUTPUT_FORMAT = 'GeoJSON'(for more information see, Snowflake documentation). - Using the
ST_ASGEOJSONfunction in the SQL used to export the data:SELECT ID, Description, ST_AsGeoJSON(Geom) FROM Mytable.
- Setting the session before exporting the data:
-
Both Snowflake GEOMETRY and GEOGRAPHY columns are supported. The geometry in the export must be in the original coordinate system of the table. Although the GeoJSON specification requires the geometry to be in the WGS84 coordinate system (SRID = 4326). The Snowflake
ST_ASGEOJSONfunction does not impose this requirement.
Upload sample data
- Go to .
- Click the cataloged dataset name for which you want to upload sample data.
- Click +Upload Sample.
- Choose the file that contains the sample data, then click Open.
- If previously uploaded sample data appears on the tab, you must first click the Delete button to clear the existing data.
- If the upload fails, a dialog will describe problems with the upload. Common issues that prevent an upload include the following: sample and dataset fields do not match, file size exceeds the maximum allowed file size, or unsupported file type.
- Sample datasets are by default stored in encrypted format on the Precisely Cloud. They are deleted 90 days after they are last used or browsed.
Generate sample data
Delete sample data
Remove sample data from a cataloged dataset.
- Go to .
- Click the cataloged dataset name for which you want to delete sample data.
- Click Delete Sample.
- When prompted whether to delete the sample, click Delete.