Table of Contents

Search

  1. Preface
  2. Introduction to Amazon S3 V2 Connector
  3. Connections for Amazon S3 V2
  4. Amazon S3 V2 sources and targets
  5. Mappings and mapping tasks with Amazon S3 V2
  6. Migrating a mapping
  7. Upgrading to Amazon S3 V2 Connector
  8. Data type reference
  9. Troubleshooting

Amazon S3 V2 Connector

Amazon S3 V2 Connector

Delta files

Delta files

You can read from and write to Delta files in Amazon Redshift.
A Delta file consists of the following components:
  • Parquet files where the data is stored.
  • JSON files where the metadata and data change logs are stored.
    Each transaction that modifies the data results in a new JSON file. The JSON files are stored in
    _delta_log
    directory.
Consider the following rules and guidelines when you read from and write to Delta files:
  • You cannot read and write Delta files in a mapping in SQL ELT mode or a mapping task enabled with SQL ELT optimization.
  • You cannot use source partitioning or target partitioning when you read from or write to Delta files.
  • When you read from a Delta file and edit the metadata, do not change the data type. Else, the mapping fails. You can only change the precision of the data types.
  • If you select the
    Delta
    format type and select
    Import from schema file
    as the value of the
    Schema Source
    formatting option, you can only upload a schema file in the JSON format.
    The following sample shows a schema file for a Delta file:
    {"type": "struct","fields": [{"name": "c_custkey","type": "integer","nullable": true,"metadata": {}},{"name": "c_name","type": "string","nullable": true,"metadata": {}},{"name": "c_address","type": "string","nullable": true,"metadata": {}},{"name": "c_comment","type": "string","nullable": true,"metadata": {}}]}
  • When there is a change in the metadata of a Delta file, you cannot write data to the same Delta file in its current folder path or bucket. You must specify a different path or bucket name.

0 COMMENTS

We’d like to hear from you!