-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query 1 return types do not match driver expected return types #34
Comments
You're right, the driver needs to be updated. It is on our (LDBC) roadmap to decide on a Date/DateTime format, but in the interim we are using http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#currentTimeMillis() I'll leave this issue open, as it really needs to be made a priority, but for now please treat it as above. Is this doable for now? |
I'm assuming you mean [http://docs.oracle.com/javase/7/docs/api/java/util/Date.html#getTime()] ? |
You're right. System.currentTimeMillis() == Date.getTime(), but only for RIGHT NOW :) |
Hmph, I 'm getting validation errors on the birthday field due to hour differences. I'm using UTC to get the timestamp from the date, what are you using? |
what do you mean by "how are you using"? |
Great, that’s exactly what I was looking for. I was using JODA which is TimeZone aware. |
Hmph.
Looks like an hour's difference, maybe daylight savings time? Ideas? |
Hi Tomer, I just looked in the persons .csv outputted by the data generator and saw entries like this: I suspect what is happening is the data generator is doing this when serializing:
When I think it should be doing this:
More about it here: @ArnauPrat thoughts? And, side note, we should be publishing things like TimeZone and Charset in our spec. Thanks so much for all the bug reports Tomer. |
Hi @alexaverbuch |
When I do this:
The output is:
|
So I think yes.
Otherwise users will encounter issues due to time conversation during the parsing phase, as @tomersagi has reported. |
@alexaverbuch : OK, we speak and agree in the steps to follow |
@alexaverbuch I would just use GMT for the time format (to choose one), and document this in the spec (I'll do so). Do you agree? |
Bah, still having issues with this. Date comparison is ok now, but datetime is still off. Here is the code I'm using to load the data to the graph:
And here is the code used for retrieval:
My guess is that the Date.getTime() is using GMT+2 instead of GMT. |
@tomersagi, |
Fixed, thanks! |
hi,
According to: [https://github.com/ldbc/ldbc_driver/blob/master/src/main/java/com/ldbc/driver/workloads/ldbc/snb/interactive/LdbcQuery1Result.java]
The birthday and creation date should be long, but according to the documentation they should be Date and DateTime respectively.
If this is indeed to be long, what long are you expecting?
Thanks
The text was updated successfully, but these errors were encountered: