Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc_source/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Optional\. When set to `TRUE`, lets you skip malformed JSON syntax\. The default
Optional\. The default is `FALSE`\. When set to `TRUE`, allows the SerDe to replace the dots in key names with underscores\. For example, if the JSON dataset contains a key with the name `"a.b"`, you can use this property to define the column name to be `"a_b"` in Athena\. By default \(without this SerDe\), Athena does not allow dots in column names\.

**case\.insensitive**
Optional\. By default, Athena requires that all keys in your JSON dataset use lowercase\. The default is `TRUE`\. When set to `TRUE`, the SerDe converts all uppercase columns to lowercase\. Using `WITH SERDEPROPERTIES ("case.insensitive"= FALSE;)` allows you to use case\-sensitive key names in your data\.
Optional\. The default is `TRUE`\. When set to `TRUE`, the SerDe converts all uppercase keys to lowercase\. Using `WITH SERDEPROPERTIES ("case.insensitive" = "FALSE")` allows you to use case\-sensitive key names in your data\. For every key that is not already all\-lowercase, you must also provide a mapping from the column name to the property name, e\.\g. `WITH SERDEPROPERTIES ("case.insensitive" = "FALSE", "mapping.userid" = "userId")`\. If you have two keys that are the same when lower cased, you can use this property to map them to different names, e\.g\. `WITH SERDEPROPERTIES ("case.insensitive" = "FALSE", "mapping.url1" = "URL", "mapping.url2" = "Url")`\.

**ColumnToJsonKeyMappings**
Optional\. Maps column names to JSON keys that aren't identical to the column names\. This is useful when the JSON data contains keys that are [keywords](reserved-words.md)\. For example, if you have a JSON key named `timestamp`, set this parameter to `{"ts": "timestamp"}` to map this key to a column named `ts`\. This parameter takes values of type string\. It uses the following key pattern: `^\S+$` and the following value pattern: `^(?!\s*$).+`
Expand Down Expand Up @@ -170,4 +170,4 @@ CREATE external TABLE complex_json (
)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
LOCATION 's3://mybucket/myjsondata/';
```
```