Hello All,

I've started work on ARROW-582 to add Date/Time support for Java JSON files
and would just like to clear up a few things.  I believe the Java Time type
is supposed to represent milliseconds since epoch, it is stored as a
FixedValueVector with a width of 4 bytes (equivalent to Java 'int') and it
retrieved by constructing a org.joda.time.DateTime with that value.
Shouldn't this be an 8 byte width, equivalent to Java 'long'?

    <#elseif minor.class == "Time">
    @Override
    public DateTime getObject(int index) {

        org.joda.time.DateTime time = new
org.joda.time.DateTime(get(index), org.joda.time.DateTimeZone.UTC);
        time =
time.withZoneRetainFields(org.joda.time.DateTimeZone.getDefault());
        return time;
    }

Thanks,
Bryan

Reply via email to