diff --git a/dbms/src/Functions/geoToH3.cpp b/dbms/src/Functions/geoToH3.cpp index 2adb6ead584..bc2b44514ee 100644 --- a/dbms/src/Functions/geoToH3.cpp +++ b/dbms/src/Functions/geoToH3.cpp @@ -1,3 +1,5 @@ +#if USE_H3 + #include #include #include @@ -164,3 +166,4 @@ void registerFunctionGeoToH3(FunctionFactory & factory) } } +#endif diff --git a/dbms/src/Functions/registerFunctions.cpp b/dbms/src/Functions/registerFunctions.cpp index 5859506627e..c48fa1004e0 100644 --- a/dbms/src/Functions/registerFunctions.cpp +++ b/dbms/src/Functions/registerFunctions.cpp @@ -42,7 +42,10 @@ void registerFunctionsNull(FunctionFactory &); void registerFunctionsFindCluster(FunctionFactory &); void registerFunctionsJSON(FunctionFactory &); void registerFunctionTransform(FunctionFactory &); + +#if USE_H3 void registerFunctionGeoToH3(FunctionFactory &); +#endif #if USE_ICU void registerFunctionConvertCharset(FunctionFactory &); @@ -86,7 +89,10 @@ void registerFunctions() registerFunctionsFindCluster(factory); registerFunctionsJSON(factory); registerFunctionTransform(factory); + +#if USE_H3 registerFunctionGeoToH3(factory); +#endif #if USE_ICU registerFunctionConvertCharset(factory);