Beyond the standard types listed in official AWS documentation, athenadriver supports several additional types.
When querying these types:
json, varbinary, and row are returned as their string representation.interval year to month, interval day to second, time, time with time zone, and timestamp with time zone are returned as Go time.Time objects.
This allows you to work with complex Athena types directly using standard Go types or string parsing.
// Example of querying various types
query := "SELECT JSON '\"Hello Athena\"', " +
"ST_POINT(-74.006801, 40.70522), " +
"ROW(1, 2.0), INTERVAL '2' DAY, " +
"INTERVAL '3' MONTH, " +
"TIME '01:02:03.456', " +
"TIME '01:02:03.456 America/Los_Angeles', " +
"TIMESTAMP '2001-08-22 03:04:05.321 America/Los_Angeles';"
// Results for json, varbinary, and row will be strings.
// Results for time/timestamp types will be time.Time.