mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
suppress warnings and skip tests in arcadia
This commit is contained in:
parent
35d0b3d3ec
commit
eecc12ff6a
@ -117,6 +117,3 @@ target_link_libraries(clickhouse_functions PRIVATE clickhouse_functions_array)
|
||||
if (USE_STATS)
|
||||
target_link_libraries(clickhouse_functions PRIVATE stats)
|
||||
endif()
|
||||
|
||||
# Signed integer overflow on user-provided data inside boost::geometry - ignore.
|
||||
set_source_files_properties("pointInPolygon.cpp" PROPERTIES COMPILE_FLAGS -fno-sanitize=signed-integer-overflow)
|
||||
|
@ -426,14 +426,7 @@ private:
|
||||
{
|
||||
out_container.reserve(end - begin);
|
||||
for (size_t i = begin; i < end; ++i)
|
||||
{
|
||||
Int64 result = 0;
|
||||
if (common::mulOverflow(static_cast<Int64>(x_data[i]), static_cast<Int64>(y_data[i]), result))
|
||||
throw Exception("The coordinates of the point are such that subsequent calculations cannot be performed correctly. " \
|
||||
"Most likely they are very large in modulus.", ErrorCodes::BAD_ARGUMENTS);
|
||||
|
||||
out_container.emplace_back(x_data[i], y_data[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void parseConstPolygonWithoutHolesFromSingleColumn(const IColumn & column, size_t i, Polygon & out_polygon) const
|
||||
|
@ -7,12 +7,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_polygons;"
|
||||
${CLICKHOUSE_CLIENT} -q "create table country_polygons(name String, p Array(Array(Tuple(Float64, Float64)))) engine=MergeTree() order by tuple();"
|
||||
cat ${CURDIR}/country_polygons.tsv | ${CLICKHOUSE_CLIENT} -q "insert into country_polygons format TSV"
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT c, d, polygonsIntersectionSpherical(a, b) FROM (SELECT first.p AS a, second.p AS b, first.name AS c, second.name AS d FROM country_polygons AS first CROSS JOIN country_polygons AS second LIMIT 100) format TSV"
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT c, d, polygonsIntersectionSpherical(a, b) FROM (SELECT first.p AS a, second.p AS b, first.name AS c, second.name AS d FROM country_polygons AS first CROSS JOIN country_polygons AS second LIMIT 100) format TSV"
|
||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_polygons;"
|
||||
|
||||
|
||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_rings;"
|
||||
${CLICKHOUSE_CLIENT} -q "create table country_rings(name String, p Array(Tuple(Float64, Float64))) engine=MergeTree() order by tuple();"
|
||||
cat ${CURDIR}/country_rings.tsv | ${CLICKHOUSE_CLIENT} -q "insert into country_rings format TSV"
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT c, d, polygonsIntersectionSpherical(a, b) FROM (SELECT first.p AS a, second.p AS b, first.name AS c, second.name AS d FROM country_rings AS first CROSS JOIN country_rings AS second LIMIT 100) format TSV"
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT c, d, polygonsIntersectionSpherical(a, b) FROM (SELECT first.p AS a, second.p AS b, first.name AS c, second.name AS d FROM country_rings AS first CROSS JOIN country_rings AS second LIMIT 100) format TSV"
|
||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_rings;"
|
@ -212,9 +212,12 @@
|
||||
01017_uniqCombined_memory_usage
|
||||
01747_join_view_filter_dictionary
|
||||
01748_dictionary_table_dot
|
||||
00950_dict_get,
|
||||
00950_dict_get
|
||||
01683_flat_dictionary
|
||||
01681_cache_dictionary_simple_key
|
||||
01682_cache_dictionary_complex_key
|
||||
01684_ssd_cache_dictionary_simple_key
|
||||
01685_ssd_cache_dictionary_complex_key
|
||||
01304_polygons_sym_difference
|
||||
01305_polygons_union
|
||||
01306_polygons_intersection
|
||||
|
@ -1 +1,4 @@
|
||||
# We have no suppressions!
|
||||
# https://github.com/llvm-mirror/compiler-rt/blob/master/lib/ubsan/ubsan_checks.inc
|
||||
|
||||
# Some value is outside the range of representable values of type 'long' on user-provided data inside boost::geometry - ignore.
|
||||
src:*/Functions/pointInPolygon.cpp
|
Loading…
Reference in New Issue
Block a user