Creating a one-time copy job
One-time copy is a one-time transfer of data from an external source connection, e.g., a PostgreSQL database, to a storage backed by a REST catalog, with no automatic updates. Unlike a regular data copy, a one-time copy has no schedule. Data is loaded once; to reload the data, you need to rerun the transfer.
Note
Currently, Yandex DataLens Platform supports data transfer from PostgreSQL, MySQL®, and ClickHouse® connections.
If data transfers do not support your required source yet, you can set up ingestion using code in Apache Spark™ or by connecting to the source in Trino. Whether a connection is possible depends on the available libraries and connectors.
To create a one-time copy job:
- Navigate to
Data transfers and click Create data transfer. - In the Select connection step, specify the source connection and proceed to the Configure data transfer.
- Set the transfer type to One-time copy to load the data once with no automatic updates.
- Specify the basic transfer settings:
- In the Transfer name field, enter a name the transfer.
- Optionally, enter the transfer’s purpose in the Description field.
- In the Database field, enter the database name in the selected source connection.
- In the Collection field, select a collection from the list. If you do not have an appropriate collection, click Create and create a new one.
- Optionally, add a label for searching and filtering the transfer.
- Under Destination, specify where to transfer the data:
- In the REST catalog field, select a REST catalog.
- In the Namespace field, select a namespace within the selected catalog. This field becomes available only after you select a REST catalog. If you do not have an appropriate namespace, click Create and create a new one.
- Under Transfer settings, select which tables to transfer in the Tables to transfer field:
- All tables: Transfer all tables from the source.
- List: Specify the tables to transfer in separate fields.
- Click Create transfer.
Note
To start data transfer, click Activate.
To check the result:
- On the ingestion page, open the namespace in the REST catalog.
- Make sure it contains your selected tables.
- Open a table and verify its structure and data under Preview.
Learn more about transfer management.