Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

CSV SerDe libraries

Focus mode
CSV SerDe libraries - Amazon Athena

When you create a table for CSV data in Athena, you can use either the Open CSV SerDe or the Lazy Simple SerDe library. To help you decide which to use, consider the following guidelines.

  • If your data contains values enclosed in double quotes ("), you can use the Open CSV SerDe library to deserialize the values in Athena. If your data does not contain values enclosed in double quotes ("), you can omit specifying any SerDe. In this case, Athena uses the default Lazy Simple SerDe. For information, see Lazy Simple SerDe for CSV, TSV, and custom-delimited files.

  • If your data has UNIX numeric TIMESTAMP values (for example, 1579059880000), use the Open CSV SerDe. If your data uses the java.sql.Timestamp format, use the Lazy Simple SerDe.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.