-
Notifications
You must be signed in to change notification settings - Fork 1.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
Refactor buildDateTimeFormatter to return velox::Expected #11246
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for meta-velox canceled.
|
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.
Thanks for extracting this change. LGTM.
@@ -218,10 +218,10 @@ class DateTimeFormatter { | |||
std::shared_ptr<DateTimeFormatter> buildMysqlDateTimeFormatter( | |||
const std::string_view& format); |
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.
Should we also make this method return Expected for consistency?
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.
Of course. Updated.
@mbasmanova Could you take a look please? Thanks. |
We have recently introduced velox::Expected (#9858) to use in non-void no-throw APIs. It's more proper to return that.