-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[IOTDB-6305] Add show current_timestamp statement #12106
Conversation
.collect(Collectors.toList()); | ||
TsBlockBuilder tsBlockBuilder = new TsBlockBuilder(outputDataTypes); | ||
tsBlockBuilder.getTimeColumnBuilder().writeLong(0L); | ||
tsBlockBuilder.getColumnBuilder(0).writeLong(System.currentTimeMillis()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any issue when the timestamp_precision is ns or us? @JackieTien97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a long value, how to resolve this long value depends on the user. We can default return ms
, in stardand sql, there will be a parameter called precision
in current_timestamp function to decide whether to return ms
, us
or ns
, so I think it's ok to defaultly return ms
here and this function call's time precision should have nothing to do with our timestamp_precision
configuration.
fa61eaa
to
a486fb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6a50fac
to
fad6e18
Compare
issue: https://issues.apache.org/jira/browse/IOTDB-6305