presto-base-jdbc/src/main/java/io/prestosql/plugin/jdbc/StandardColumnMappings.java/StandardColumnMappings/timestampColumnMappingUsingSqlTimestamp
class StandardColumnMappings:    @Deprecated
    public static ColumnMapping timestampColumnMappingUsingSqlTimestamp(ConnectorSession session)
    {
        if (session.isLegacyTimestamp()) {
            ZoneId sessionZone = ZoneId.of(session.getTimeZoneKey().getId());
            return ColumnMapping.longMapping(
                    TIMESTAMP,
                    (resultSet, columnIndex) -> {
                        Timestamp timestamp = resultSet.getTimestamp(columnIndex);
                        return toPrestoLegacyTimestamp(timestamp.toLocalDateTime(), sessionZone);
                    },
                    timestampWriteFunctionUsingSqlTimestamp(session));
        }

        return ColumnMapping.longMapping(
                TIMESTAMP,
                (resultSet, columnIndex) -> {
                    Timestamp timestamp = resultSet.getTimestamp(columnIndex);
                    return toPrestoTimestamp(timestamp.toLocalDateTime());
                },
                timestampWriteFunctionUsingSqlTimestamp(session));
    }