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

Support duration. #83

Merged
merged 1 commit into from
Dec 31, 2021
Merged

Conversation

Shylock-Hg
Copy link
Contributor

Close #66

auto resp = session.execute("YIELD duration({years: 1, seconds: 2}) AS d");
ASSERT_EQ(resp.errorCode, nebula::ErrorCode::SUCCEEDED);

nebula::DataSet expected({"d"});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some toString test of duration?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All code in common already tested in nebula, if want it. We could copy it to client. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok to me. But I still don't find toString test of duration in common of nebula.

@jievince jievince merged commit 8bf03d3 into vesoft-inc:master Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new datetime functions like datediff and dateadd
2 participants