-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Better error msg for validity check of geography #4601
Conversation
d505057
to
97fbc07
Compare
0328443
to
4e0490c
Compare
ae4fc8c
to
e21f053
Compare
@@ -2511,7 +2511,8 @@ FunctionManager::FunctionManager() { | |||
if (!args[0].get().isGeography()) { | |||
return Value::kNullBadType; | |||
} | |||
return args[0].get().getGeography().isValid(); | |||
auto status = args[0].get().getGeography().isValid(); | |||
return status.ok() ? true : false; |
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 seems doesn't affect.
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.
Missed it here, thanks
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
d394c6e
to
4a07114
Compare
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
When geography dataum is found to be illegal, print the specific cause of the error to facilitate troubleshooting.
eg.
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: