Skip to content
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

SNB/IW: Updates for the type DateTime use Date inputs instead of DateTime #65

Closed
whatsthecraic opened this issue Nov 27, 2016 · 4 comments
Labels

Comments

@whatsthecraic
Copy link

Hi,

In (all?) updates issued by the driver for the SNB/IW workload, when the specification expects a DateTime as parameter type, the driver always provide an instance of java.util.Date. Basically the time is not recorded. Is this behaviour implemented on purpose?

@szarnyasg
Copy link
Member

szarnyasg commented Dec 12, 2021

The specification has been revised since and none of the Interactive read queries (complex, short) expect a DateTime. Dates can occur on the input and some queries return a DateTime, handled as a long (UNIX epoch) by the driver.

Related issue: #36

@szarnyasg szarnyasg reopened this Dec 12, 2021
@szarnyasg szarnyasg changed the title SNB/IW: Updates for the type DateTime do not provide any time SNB/IW: Updates for the type DateTime use Date inputs instead of DateTime Dec 12, 2021
@szarnyasg szarnyasg added the bug label Dec 12, 2021
@szarnyasg
Copy link
Member

Looked into this in more detail. java.util.Date stores timestamps with millisecond precision:

The class Date represents a specific instant in time, with millisecond precision.

The code had a confusing comment and a superfluous one - I removed them.

szarnyasg added a commit that referenced this issue Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants