

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 為您的資料選擇 SerDe
<a name="supported-serdes"></a>

下列資料表會列出 Athena 中支援的資料格式及其對應的 SerDe 程式庫。


**支援的資料格式和 SerDes**  

| 資料格式 | Description | Athena 中支援的 SerDe 類型 | 
| --- | --- | --- | 
| Amazon Ion | Amazon Ion 是由 Amazon 開發及開放原始碼的豐富類型、自行描述的資料格式，是 JSON 的超集。 | 使用 [Amazon Ion Hive SerDe](ion-serde.md)。 | 
| Apache Avro | Hadoop 中用於存放資料的格式，使用以 JSON 為基礎的結構描述來存放記錄值。 | 使用 [Avro SerDe](avro-serde.md)。 | 
| Apache Parquet | Hadoop 中的資料的單欄式儲存格式。 | 使用 [Parquet SerDe](parquet-serde.md) 和 SNAPPY 壓縮。 | 
| Apache WebServer 日誌 | Apache WebServer 中存放日誌的格式。 | 使用 [Grok SerDe](grok-serde.md) 或 [Regex SerDe](regex-serde.md)。 | 
| CloudTrail 日誌 | CloudTrail 中存放日誌的格式。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/athena/latest/ug/supported-serdes.html)  | 
| CSV (逗號分隔值) | 對於 CSV 的資料，每一行代表一筆資料記錄，而每一筆記錄由一或多個欄位組成 (以逗號分隔)。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/athena/latest/ug/supported-serdes.html)  | 
| 自訂分隔 | 對於此格式的資料，每一行代表一筆資料記錄，而記錄以自訂單一字元分隔符號隔開。 | 使用 [適用於 CSV、TSV 和自訂分隔檔案的 Lazy Simple SerDe](lazy-simple-serde.md)，並指定自訂單一字元分隔符號。 | 
| JSON (JavaScript 物件標記法) | 對於 JSON 資料，每一行代表一筆資料記錄，而每一筆記錄由屬性/值對組成 (以逗號分隔)。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/athena/latest/ug/supported-serdes.html)  | 
| Logstash 日誌 | Logstash 中存放日誌的格式。 | 使用 [Grok SerDe](grok-serde.md)。 | 
| ORC (Optimized Row Columnar，最佳化列單欄式) | Hive 資料的最佳化單欄式儲存格式。 | 使用 [ORC SerDe](orc-serde.md) 和 ZLIB 壓縮。 | 
| TSV (定位字元分隔值) | 對於 TSV 的資料，每一行代表一筆資料記錄，而每一筆記錄由一或多個欄位組成 (以定位字元分隔)。 | 使用 [適用於 CSV、TSV 和自訂分隔檔案的 Lazy Simple SerDe](lazy-simple-serde.md)，並將分隔符號字元指定為 `FIELDS TERMINATED BY '\t'`。 | 