You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "ffacs (via GitHub)" <gi...@apache.org> on 2025/07/01 16:19:46 UTC
Re: [PR] ORC-1920: [C++] Support `Geometry` and `Geography` types [orc]
ffacs commented on code in PR #2269:
URL: https://github.com/apache/orc/pull/2269#discussion_r2178029944
##########
c++/src/TypeImpl.cc:
##########
@@ -710,6 +823,22 @@ namespace orc {
return std::make_unique<TypeImpl>(DECIMAL, precision, scale);
}
+ std::unique_ptr<Type> TypeImpl::parseGeographyType(const std::string& input, size_t start,
+ size_t end) {
+ if (input[start] != '(') {
+ throw std::logic_error("Missing ( after geometry.");
+ }
+ size_t pos = start + 1;
+ size_t sep = input.find(',', pos);
+ if (sep + 1 >= end || sep == std::string::npos) {
+ throw std::logic_error("Decimal type must specify CRS.");
Review Comment:
Done.
##########
c++/src/TypeImpl.cc:
##########
@@ -710,6 +823,22 @@ namespace orc {
return std::make_unique<TypeImpl>(DECIMAL, precision, scale);
}
+ std::unique_ptr<Type> TypeImpl::parseGeographyType(const std::string& input, size_t start,
+ size_t end) {
+ if (input[start] != '(') {
+ throw std::logic_error("Missing ( after geometry.");
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org