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

Refactor buildDateTimeFormatter to return velox::Expected #11246

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NEUpanning
Copy link
Contributor

We have recently introduced velox::Expected (#9858) to use in non-void no-throw APIs. It's more proper to return that.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 12, 2024
Copy link

netlify bot commented Oct 12, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 5548be8
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/670a2b378141340008fd43d3

Copy link
Collaborator

@rui-mo rui-mo left a 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);
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. Updated.

@NEUpanning
Copy link
Contributor Author

@mbasmanova Could you take a look please? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants