-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
h3 functions required for circle search #8034
Conversation
3e86501
to
508ee53
Compare
a8ad932
to
c39cf03
Compare
dbms/src/Functions/h3EdgeArc.cpp
Outdated
{ | ||
#ifdef __clang__ | ||
#pragma clang diagnostic push | ||
#pragma clang diagnostic ignored "-Wdocumentation" |
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.
Maybe mark the include directory as SYSTEM in CMakeLists will help.
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.
I just copy-pasted it from geoToH3.cpp
, can you explain how should I fix it?
11cedd1
to
4b60bc9
Compare
I've rebased it on current master |
d730e31
to
9363722
Compare
dbms/src/Functions/h3kRing.cpp
Outdated
const int k = col_k->getInt(row); | ||
|
||
const auto arr_size = H3_EXPORT(maxKringSize)(k); | ||
std::unique_ptr<H3Index[]> hindex_arr{new H3Index[arr_size]}; |
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.
What does it happen here?
extern "C" { | ||
# ifdef __clang__ | ||
# pragma clang diagnostic push | ||
# pragma clang diagnostic ignored "-Wdocumentation" |
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.
Is it possible to do without ignoring this flag? Actually we already have had documentation comment....
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.
Actually, I don't know what it is for, I just copy-pasted it from geoToH3.cpp
I'll remove it
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.
In this case probably we can't do without it
Because h3 headers are included as system headers: Why it's ok to suppress all warnings from 3rd party library?
Because h3 library already contains
It is needed only if the user decided to prefix all h3 functions. We didn't do that. |
Why don't we want to prefix C function from h3? |
We don't need that - there is no name collisions. |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru
Changelog category (leave one):
Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
Support of several
h3
function in addition togeoToH3
:Examples:
Fix #8000