Diagram
A four-step process flow showing how to import CSV data into Cloud Spanner: export CSV files to a Cloud Storage bucket, create a JSON manifest mapping tables to files, create target tables with matching schemas, then run a Dataflow import job that reads the manifest and CSV files and writes rows into Spanner.
Spanner CSV Export and Import With Manifest Files
A Cloud Spanner CSV export and import uses CSV data files plus a JSON manifest file stored together in a Cloud Storage bucket. Data flows from Spanner through Dataflow to CSV files on export, and from CSV files through Dataflow to Spanner on import. Because CSV does not carry full Spanner type information on its own, the JSON manifest specifies which destination tables are populated by which CSV files, and the target tables must already exist with the correct schema.
Domain 2 of 4
21 practice questions
Practice this DomainLast updated