@Nonnull
    public static ToConverter getToConverter(QueryDataType type) {
        if (type.getTypeFamily() == QueryDataTypeFamily.OBJECT) {
            // User-defined types are subject to the same conversion rules as ordinary OBJECT.
            type = QueryDataType.OBJECT;
        }
        return Objects.requireNonNull(CONVERTERS.get(type), "missing converter for " + type);
    }
@Test
    public void test_calendarConversion() {
        OffsetDateTime time = OffsetDateTime.of(2020, 9, 8, 11, 4, 0, 0, UTC);

        Object converted = getToConverter(TIMESTAMP_WITH_TZ_CALENDAR).convert(time);

        assertThat(converted).isEqualTo(GregorianCalendar.from(time.toZonedDateTime()));
    }