Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange for Amazon S3
  3. PowerExchange for Amazon S3 Configuration Overview
  4. Amazon S3 Connections
  5. PowerExchange for Amazon S3 Data Objects
  6. PowerExchange for Amazon S3 Mappings
  7. PowerExchange for Amazon S3 Lookups
  8. Appendix A: Amazon S3 Data Type Reference
  9. Appendix B: Troubleshooting

PowerExchange for Amazon S3 User Guide

PowerExchange for Amazon S3 User Guide

Specifying the schema file format

Specifying the schema file format

You can override the default schema and specify the schema for Flat, Avro, ORC, and Parquet files. Specify the schema in the following formats:
  • Flat
    {"FileName":"<FilePath>\\<FileName>","Columns":[{"Type":"number","Precision":2,"Scale":0,"Name":"N_NATIONKEY"},{"Type":"string","Precision":14,"Scale":0,"Name":"N_NAME"},{"Type":"number","Precision":1,"Scale":0,"Name":"N_REGIONKEY"},{"Type":"string","Precision":112,"Scale":0,"Name":"N_COMMENT"}]}
  • Avro
    {"type":"record","name":"InfaRecord","fields":[{ "name":"C_CUSTKEY" , "type":[{"type":"bytes","logicalType":"decimal","precision":3,"scale":0},"null"]} , { "name":"C_NAME" , "type": ["string", "null"] } , { "name":"C_ADDRESS" , "type": ["string", "null"] } , { "name":"C_PHONE" , "type": ["string", "null"] } , { "name":"C_ACCTBAL" , "type": ["string", "null"] } , { "name":"C_MKTSEGMENT" , "type": ["string", "null"] } , { "name":"C_COMMENT" , "type": ["string", "null"] }]}
  • ORC
    message AmazonS3_Data_Object { optional INT32 C_CUSTKEY (DECIMAL(3,0));optional binary C_NAME (UTF8);optional binary C_ADDRESS (UTF8);optional INT32 C_NATIONKEY (DECIMAL(2,0));optional binary C_COMMENT (UTF8); }
  • Parquet
    message S3_Parquet_1_Level { optional INT32 C_CUSTKEY (DECIMAL(3,0));optional binary C_NAME (UTF8);optional binary C_ADDRESS (UTF8);optional binary C_PHONE (UTF8);optional binary C_ACCTBAL (UTF8);optional binary C_MKTSEGMENT (UTF8);optional binary C_COMMENT (UTF8); }

0 COMMENTS

We’d like to hear from you!