Francisco Javier Jurado Moreno
b6dfa25ca4
Get rid of single-use constant
2024-05-27 11:45:08 +02:00
Francisco Javier Jurado Moreno
28640e4323
Expand the values of the size mapping
2024-05-27 11:44:32 +02:00
Francisco Javier Jurado Moreno
6db2a42d19
Unindent contents of anonymous namespace
2024-05-27 11:42:27 +02:00
Alexander Tokmakov
5a868304c0
Revert "Remove some unnecessary UNREACHABLE
s"
2024-05-27 11:38:22 +02:00
Robert Schulze
4d642a0e6c
Merge remote-tracking branch 'rschu1ze/master' into redundant-inline
2024-05-26 20:43:41 +00:00
Robert Schulze
7a552f5b06
Merge pull request #64035 from rschu1ze/unreachable-unreachable
...
Remove some unnecessary `UNREACHABLE`s
2024-05-26 20:37:17 +00:00
Robert Schulze
fb70f2fb2f
Merge pull request #63577 from kazalika/add-serial-function
...
Add function `generateSnowflakeID`
2024-05-26 19:26:54 +00:00
Robert Schulze
f182920c98
Merge remote-tracking branch 'ClickHouse/master' into redundant-inline
2024-05-26 14:21:47 +00:00
Francisco Javier Jurado Moreno
6d710d06a6
Remove trailing whitespace
2024-05-25 20:33:22 +02:00
Francisco Javier Jurado Moreno
ce2025676f
add check for result being too big to be represented in output
2024-05-25 20:25:37 +02:00
Francisco Javier Jurado Moreno
738461226c
Merge branch 'master' into fjurado-59849/feat-allow-comparison-between-ipv4-and-ipv6
2024-05-25 10:48:21 +02:00
Francisco Javier Jurado Moreno
664c9358ca
Fix typos in docstring
2024-05-25 08:22:48 +02:00
Francisco Javier Jurado Moreno
c5b70f595e
Make unit case-insensitive
2024-05-25 07:52:26 +02:00
Nikita Mikhaylov
1fa17f1035
Fixed style
2024-05-24 19:09:39 +00:00
Nikita Mikhaylov
33306993c1
Better
2024-05-24 18:02:45 +00:00
Yarik Briukhovetskyi
ca91a42d33
add explicit conversion for UInt8 in exceptions
2024-05-24 17:28:55 +02:00
Francisco Javier Jurado Moreno
b884d827a5
Rebase and fix merge conflicts
2024-05-24 17:21:02 +02:00
Francisco Javier Jurado Moreno
0b7ef00161
Update docs
2024-05-24 17:08:29 +02:00
Yarik Briukhovetskyi
edfb5fcc34
small changes
2024-05-24 16:49:50 +02:00
Francisco Javier Jurado Moreno
07a24a8769
Initial implementation
2024-05-24 16:25:33 +02:00
Raúl Marín
54cb4f2ac7
Rename allow_deprecated_functions to allow_deprecated_error_prone_window_functions
2024-05-24 12:54:06 +02:00
Robert Schulze
3d91937a94
Merge remote-tracking branch 'ClickHouse/master' into add-serial-function
2024-05-24 10:32:20 +00:00
Robert Schulze
6e6e2944b5
Fix glitch in #62696
2024-05-23 21:29:41 +00:00
Francisco Javier Jurado Moreno
e663136358
Fix right side of condition
2024-05-23 22:35:31 +02:00
Robert Schulze
578dc58521
Merge pull request #62696 from rschu1ze/revert-revert-62392
...
Revert "Revert "Speed up `splitByRegexp`""
2024-05-23 20:21:21 +00:00
wudidapaopao
92dfaa7e49
Fix unexpected accurateCast from string to integer
2024-05-24 03:15:31 +08:00
Robert Schulze
ae8ceaa35e
Cosmetics, pt. IX and cached machineId computation
2024-05-23 18:38:30 +00:00
Robert Schulze
12f60a4969
Cosmetics, pt. VIII
2024-05-23 18:00:53 +00:00
Robert Schulze
5d82a94615
Revert generateSerialID
2024-05-23 17:22:59 +00:00
Robert Schulze
4611a44c1f
Cosmetics, pt. VI
2024-05-23 15:53:14 +00:00
Nikita Mikhaylov
ac6dae5165
Correctly compare custom types
2024-05-23 15:26:21 +00:00
Robert Schulze
e6f135089f
Cosmetics, pt. V
2024-05-23 15:25:38 +00:00
Robert Schulze
c1950236ce
Cosmetics, pt. IV
2024-05-23 15:24:18 +00:00
Francisco Javier Jurado Moreno
aab6dfb8f0
Merge branch 'master' into fjurado-59849/feat-allow-comparison-between-ipv4-and-ipv6
2024-05-23 16:49:17 +02:00
Kruglov Pavel
30dce7821c
Merge pull request #63058 from Avogar/dynamic-data-type
...
Implement Dynamic data type
2024-05-23 14:19:46 +00:00
Nikita Mikhaylov
54f2549ef5
Save
2024-05-23 14:00:49 +00:00
Nikita Mikhaylov
7e5bf14135
Add support for LineString WKT
2024-05-23 14:00:49 +00:00
Francisco Javier Jurado Moreno
cd395ef346
Restore whitespace
2024-05-23 15:33:31 +02:00
Francisco Javier Jurado Moreno
6cd8bec3fc
Remove unnecessary repetition
2024-05-23 15:31:56 +02:00
Francisco Javier Jurado Moreno
5718375131
Restore newline
2024-05-23 15:15:02 +02:00
Robert Schulze
147516f162
Fix AST fuzzer failure
2024-05-23 13:04:18 +00:00
Francisco Javier Jurado Moreno
12d582155e
Allow comparing Ipv4 and IPv6 values
2024-05-23 14:50:14 +02:00
Robert Schulze
cdd99a73a0
Fix clang-tidy
2024-05-23 11:29:45 +00:00
Robert Schulze
9d63095db9
Revert "Revert "Speed up splitByRegexp
""
...
This reverts commit 08e5c2ba4d
.
2024-05-23 10:01:10 +00:00
Robert Schulze
f792a602da
Merge remote-tracking branch 'rschu1ze/master' into unreachable-unreachable
2024-05-22 21:08:27 +00:00
Robert Schulze
bb4f373038
Merge remote-tracking branch 'ClickHouse/master' into change_date
2024-05-22 21:07:20 +00:00
Robert Schulze
f584807359
Merge remote-tracking branch 'rschu1ze/master' into redundant-inline
2024-05-22 21:05:27 +00:00
Danila Puzov
b6aa841e57
Docs for generateSnowflakeID
2024-05-22 19:26:48 +03:00
Danila Puzov
332f449a0c
Issues
2024-05-22 18:59:39 +03:00
Raúl Marín
72604ab940
Merge remote-tracking branch 'blessed/master' into ifunction_column_size
2024-05-22 17:37:43 +02:00
Kruglov Pavel
3266c3813c
Merge pull request #63628 from aiven-sal/aiven-sal/fixhashfuzz
...
Fix Array and Map support with Keyed hashing
2024-05-22 13:29:34 +00:00
Robert Schulze
fdb63fc7ed
Merge remote-tracking branch 'ClickHouse/master' into change_date
2024-05-22 12:23:36 +00:00
Kruglov Pavel
e53daf32a1
Merge branch 'master' into dynamic-data-type
2024-05-22 14:16:45 +02:00
Robert Schulze
4efed87af8
Merge remote-tracking branch 'rschu1ze/master' into unreachable-unreachable
2024-05-22 12:06:00 +00:00
Robert Schulze
0d3aeddc93
Merge remote-tracking branch 'rschu1ze/master' into unreachable-unreachable
2024-05-22 07:25:00 +00:00
Azat Khuzhin
89f26b56c6
Fix stripping heavy debug symbols in functions
...
v2: remove resolving realpath
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-22 07:47:36 +02:00
Robert Schulze
336e791ea8
Fix style check, pt. II
2024-05-21 20:50:54 +00:00
Raúl Marín
3d717ace36
Fix missing input_rows_count
2024-05-21 22:01:00 +02:00
Raúl Marín
ba65bbeaa2
Remove more code from old short circuit optimization
2024-05-21 19:37:32 +02:00
Raúl Marín
d4b723bcbe
Try using input_rows_count as validation
2024-05-21 18:37:59 +02:00
Raúl Marín
2e1f2565ea
Merge remote-tracking branch 'blessed/master' into ifunction_column_size
2024-05-21 12:33:56 +02:00
avogar
6bba847b7d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-data-type
2024-05-21 09:08:24 +00:00
Artem Mustafin
4684468ee1
basic integrity tests
2024-05-21 07:56:03 +00:00
Robert Schulze
c026a5b7e9
Fix style check
2024-05-21 05:20:46 +00:00
Robert Schulze
a14e58ab88
Merge remote-tracking branch 'rschu1ze/master' into redundant-inline
2024-05-21 05:15:35 +00:00
Raúl Marín
8cd3b275ac
Change dictionary short circuit to always create values
2024-05-20 18:06:43 +02:00
Robert Schulze
d115adf462
Some fixups, pt. IV
2024-05-20 15:12:23 +00:00
Robert Schulze
70637b2ecf
Merge remote-tracking branch 'rschu1ze/master' into move-isallascii
2024-05-20 13:01:53 +00:00
Robert Schulze
7887ab3848
Merge remote-tracking branch 'rschu1ze/master' into unreachable-unreachable
2024-05-20 12:58:39 +00:00
Robert Schulze
2ceb8b9c8f
Merge remote-tracking branch 'rschu1ze/master' into redundant-inline
2024-05-20 12:56:38 +00:00
Kruglov Pavel
ac54e754fe
Merge branch 'master' into dynamic-data-type
2024-05-20 13:49:14 +02:00
Alexey Milovidov
28ded4a471
Merge pull request #63632 from azat/global-query-profiler-followup
...
Ignore global profiler if system.trace_log is not enabled and fix really disable it for keeper standalone build
2024-05-20 08:42:25 +02:00
Robert Schulze
e8d66bf4d7
Cosmetics, pt. III
2024-05-19 19:16:24 +00:00
Robert Schulze
08a3c16a5a
Cosmetics, pt. II
2024-05-19 18:53:51 +00:00
Robert Schulze
1293a0f795
Cosmetics, pt. I
2024-05-19 18:47:58 +00:00
Robert Schulze
d72cd45bd8
Merge remote-tracking branch 'ClickHouse/master' into add-serial-function
2024-05-19 18:04:18 +00:00
Robert Schulze
b1d3eb4c4d
Some fixups, pt. II
2024-05-19 13:27:17 +00:00
Robert Schulze
eecbd44ce5
Some fixups
2024-05-19 13:23:30 +00:00
Robert Schulze
ff392b0aeb
Minor corrections
2024-05-19 13:00:30 +00:00
Robert Schulze
ed28cac4c2
Restore the warning
2024-05-19 12:51:14 +00:00
Robert Schulze
e4c7e55d31
Merge remote-tracking branch 'ClickHouse/master' into change_date
2024-05-19 11:14:56 +00:00
Robert Schulze
113bb00005
Fix clang-tidy "-readability-redundant-inline-specifier"
2024-05-19 10:23:58 +00:00
Robert Schulze
17ce449076
Move isAllASCII from UTF8Helpers to StringUtils
2024-05-19 09:39:48 +00:00
Robert Schulze
2909e6451b
Move StringUtils.h/cpp back to Common/
2024-05-19 09:39:36 +00:00
Maksim Galkin
50377d2450
fix date_min of DateTime
2024-05-19 08:41:30 +00:00
Yohann Jardin
349f9eeeee
harmonize h3PointDist* error messages
2024-05-18 00:29:22 +02:00
Raúl Marín
371091c00e
Incomplete adaptation of dictionary short circuit
2024-05-17 16:53:54 +02:00
Robert Schulze
f266bdb88e
Fix more places
2024-05-17 14:44:17 +00:00
Robert Schulze
e560bd8a1a
Incorporate review feedback
2024-05-17 14:37:47 +00:00
Robert Schulze
53e992af4f
Remove some unnecessary UNREACHABLEs
2024-05-17 11:46:07 +00:00
avogar
4b178b5d35
Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-data-type
2024-05-16 22:03:59 +00:00
Raúl Marín
4680d09e9a
Change how short circuit optimization works
2024-05-16 21:35:58 +02:00
Raúl Marín
36f10250f9
Style
2024-05-16 14:05:15 +02:00
Raúl Marín
698c53b60f
Better
2024-05-16 14:05:12 +02:00
Raúl Marín
a4f90d54f8
Add a bunch of important asserts
2024-05-16 14:05:08 +02:00
Nikolai Kochetov
c83322525b
Merge pull request #63753 from ClickHouse/support-cast-from-empty-array-to-map-nothing
...
Allow cast from Array(Nothing) to Map(Nothing, Nothing)
2024-05-15 13:38:54 +00:00
Kruglov Pavel
413be14c43
Merge branch 'master' into dynamic-data-type
2024-05-15 13:43:04 +02:00
Nikolai Kochetov
3eec3f8675
Allow cast from Array(Nothing) to Map(Nothing, Nothing)
2024-05-14 10:42:02 +00:00
vdimir
6f74bebb48
Merge pull request #63405 from ClickHouse/vdimir/group_by_use_nulls_fixes
...
Small fixes for group_by_use_nulls
2024-05-14 08:45:20 +00:00
Antonio Andelic
95aa9af3c1
Merge pull request #62377 from skyoct/feat/func_clamp
...
support clamp function
2024-05-14 08:09:02 +00:00
Michael Kolupaev
0fd52c36c6
Merge pull request #61632 from bigo-sg/opt_string_ascii
...
Process string functions XXXUTF8 'asciily' if input strings are all ascii chars
2024-05-13 22:13:01 +00:00
Azat Khuzhin
599fce53e3
Fix compiling FunctionsConversion.cpp (by properly passing -g0)
...
CI reports [1]:
May 11 20:27:25 FAILED: src/CMakeFiles/dbms.dir/Functions/FunctionsConversion.cpp.o
May 11 20:27:25 prlimit --as=10000000000 --data=5000000000 --cpu=1800 /usr/bin/sccache /usr/bin/clang++-17 --target=riscv64-linux-gnu --sysroot=/build/cmake/linux/../../contrib/sysroot/linux-riscv64 -DANNOYLIB_MULTITHREADED_BUILD -DBOOST_ASIO_HAS_STD_INVOKE_RESULT=1 -DBOOST_ASIO_STANDALONE=1 -DBOOST_TIMER_ENABLE_DEPRECATED=1 -DCONFIGDIR=\"\" -DDUMMY_BACKTRACE -DENABLE_ANNOY -DENABLE_MULTITARGET_CODE=1 -DENABLE_USEARCH -DHAVE_BZLIB_H=1 -DHAVE_CONFIG_H -DHAVE_FUTIMESAT=1 -DHAVE_ICONV=1 -DHAVE_LIBLZMA=1 -DHAVE_LIBZSTD=1 -DHAVE_LIBZSTD_COMPRESSOR=1 -DHAVE_LINUX_FS_H=1 -DHAVE_LINUX_TYPES_H=1 -DHAVE_LZMA_H=1 -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_ZSTD_H=1 -DINCBIN_SILENCE_BITCODE_WARNING -DLIBSASL_EXPORTS=1 -DLZ4_DISABLE_DEPRECATE_WARNINGS=1 -DLZ4_FAST_DEC_LOOP=1 -DMAJOR_IN_SYSMACROS=1 -DOBSOLETE_CRAM_ATTR=1 -DOBSOLETE_DIGEST_ATTR=1 -DPLUGINDIR=\"\" -DPOCO_ENABLE_CPP11 -DPOCO_HAVE_FD_EPOLL -DPOCO_OS_FAMILY_UNIX -DSASLAUTHD_CONF_FILE_DEFAULT=\"\" -DSNAPPY_CODEC_AVAILABLE -DSTD_EXCEPTION_HAS_STACK_TRACE=1 -DUSE_CLICKHOUSE_THREADS=1 -DWITH_COVERAGE=0 -DWITH_GZFILEOP -DZLIB_COMPAT -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -I/build/build_docker/includes/configs -I/build/src -I/build/build_docker/src -I/build/build_docker/src/Core/include -I/build/base/base/.. -I/build/build_docker/base/base/.. -I/build/contrib/cctz/include -I/build/contrib/re2 -I/build/base/pcg-random/. -I/build/contrib/libfiu/libfiu -I/build/contrib/libssh/include -I/build/build_docker/contrib/libssh/include -I/build/contrib/miniselect/include -I/build/contrib/zstd/lib -I/build/contrib/pocketfft -I/build/contrib/libarchive-cmake -I/build/contrib/libarchive/libarchive -I/build/build_docker/contrib/cyrus-sasl-cmake -I/build/contrib/lz4/lib -isystem /build/contrib/llvm-project/libcxx/include -isystem /build/contrib/llvm-project/libcxxabi/include -isystem /build/contrib/libunwind/include -isystem /build/contrib/libdivide-cmake/. -isystem /build/contrib/libdivide -isystem /build/contrib/jemalloc-cmake/include -isystem /build/contrib/llvm-project/llvm/include -isystem /build/build_docker/contrib/llvm-project/llvm/include -isystem /build/contrib/abseil-cpp -isystem /build/contrib/croaring/cpp -isystem /build/contrib/croaring/include -isystem /build/contrib/sparsehash-c11 -isystem /build/contrib/incbin -isystem /build/contrib/cityhash102/include -isystem /build/contrib/boost -isystem /build/base/poco/Net/include -isystem /build/base/poco/Foundation/include -isystem /build/base/poco/NetSSL_OpenSSL/include -isystem /build/base/poco/Crypto/include -isystem /build/contrib/openssl-cmake/linux_riscv64/include -isystem /build/contrib/openssl/include -isystem /build/base/poco/Util/include -isystem /build/base/poco/JSON/include -isystem /build/base/poco/XML/include -isystem /build/contrib/replxx/include -isystem /build/contrib/fmtlib-cmake/../fmtlib/include -isystem /build/contrib/magic_enum/include -isystem /build/contrib/double-conversion -isystem /build/contrib/dragonbox/include -isystem /build/contrib/zlib-ng -isystem /build/build_docker/contrib/zlib-ng-cmake -isystem /build/contrib/pdqsort -isystem /build/contrib/xz/src/liblzma/api -isystem /build/contrib/aws/src/aws-cpp-sdk-core/include -isystem /build/build_docker/contrib/aws-cmake/include -isystem /build/contrib/aws/generated/src/aws-cpp-sdk-s3/include -isystem /build/contrib/aws-c-auth/include -isystem /build/contrib/aws-c-common/include -isystem /build/contrib/aws-c-io/include -isystem /build/contrib/aws-crt-cpp/include -isystem /build/contrib/aws-c-mqtt/include -isystem /build/contrib/aws-c-sdkutils/include -isystem /build/contrib/azure/sdk/core/azure-core/inc -isystem /build/contrib/azure/sdk/identity/azure-identity/inc -isystem /build/contrib/azure/sdk/storage/azure-storage-common/inc -isystem /build/contrib/azure/sdk/storage/azure-storage-blobs/inc -isystem /build/contrib/snappy -isystem /build/build_docker/contrib/snappy-cmake -isystem /build/contrib/libbcrypt -isystem /build/contrib/msgpack-c/include -isystem /build/build_docker/contrib/liburing/src/include-compat -isystem /build/build_docker/contrib/liburing/src/include -isystem /build/contrib/liburing/src/include -isystem /build/contrib/fast_float/include -isystem /build/contrib/librdkafka-cmake/include -isystem /build/contrib/librdkafka/src -isystem /build/build_docker/contrib/librdkafka-cmake/auxdir -isystem /build/contrib/cppkafka/include -isystem /build/contrib/nats-io/src -isystem /build/contrib/nats-io/src/adapters -isystem /build/contrib/nats-io/src/include -isystem /build/contrib/nats-io/src/unix -isystem /build/contrib/libuv/include -isystem /build/contrib/krb5/src/include -isystem /build/build_docker/contrib/krb5-cmake/include -isystem /build/contrib/NuRaft/include -isystem /build/base/poco/MongoDB/include -isystem /build/base/poco/Redis/include -isystem /build/contrib/icu/icu4c/source/i18n -isystem /build/contrib/icu/icu4c/source/common -isystem /build/contrib/capnproto/c++/src -isystem /build/contrib/avro/lang/c++/api -isystem /build/contrib/google-protobuf/src -isystem /build/contrib/s2geometry/src -isystem /build/contrib/s2geometry-cmake -isystem /build/contrib/AMQP-CPP/include -isystem /build/contrib/AMQP-CPP -isystem /build/contrib/sqlite-amalgamation -isystem /build/contrib/rocksdb/include -isystem /build/contrib/libpqxx/include -isystem /build/contrib/libpq -isystem /build/contrib/libpq/include -isystem /build/contrib/libstemmer_c/include -isystem /build/contrib/wordnet-blast -isystem /build/contrib/lemmagen-c/include -isystem /build/contrib/ulid-c/include -isystem /build/contrib/simdjson/include -isystem /build/contrib/rapidjson/include -isystem /build/contrib/consistent-hashing -isystem /build/contrib/annoy/src -isystem /build/contrib/FP16/include -isystem /build/contrib/robin-map/include -isystem /build/contrib/SimSIMD-map/include -isystem /build/contrib/usearch/include --gcc-toolchain=/build/cmake/linux/../../contrib/sysroot/linux-riscv64 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -Wno-enum-constexpr-conversion -fsized-deallocation -gdwarf-aranges -pipe -fasynchronous-unwind-tables -ffile-prefix-map=/build=. -ftime-trace -falign-functions=32 -ffp-contract=off -fdiagnostics-absolute-paths -fstrict-vtable-pointers -Wall -Wextra -Wframe-larger-than=65536 -Weverything -Wpedantic -Wno-zero-length-array -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c++20-compat -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-implicit-int-float-conversion -Wno-ctad-maybe-unsupported -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-weak-vtables -Wno-thread-safety-negative -Wno-enum-constexpr-conversion -Wno-unsafe-buffer-usage -Wno-switch-default -O2 -g -DNDEBUG -O3 -g -fno-pie -std=c++23 -D OS_LINUX -Werror -Wno-deprecated-declarations -Wno-poison-system-directories -nostdinc++ -MD -MT src/CMakeFiles/dbms.dir/Functions/FunctionsConversion.cpp.o -MF src/CMakeFiles/dbms.dir/Functions/FunctionsConversion.cpp.o.d -o src/CMakeFiles/dbms.dir/Functions/FunctionsConversion.cpp.o -c /build/src/Functions/FunctionsConversion.cpp
May 11 20:27:25 sccache: warning: The server looks like it shut down unexpectedly, compiling locally instead
[1]: https://s3.amazonaws.com/clickhouse-test-reports/63632/e795e0e028d45b654e099dee136a44e7ac5ed627/clickhouse_special_build_check/report.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-13 13:53:44 +02:00
Azat Khuzhin
d743285417
Fix undefined symbol createFunctionBaseCast() during linking examples
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-13 11:05:36 +02:00
Salvatore Mesoraca
6a94ba370a
Fix clang-tidy errors
2024-05-13 09:43:03 +02:00
Danila Puzov
9789d130a6
Tests and docs for generateSnowflakeID and fixes
2024-05-13 01:11:23 +03:00
Alexey Milovidov
258eb72c8a
Useless changes
2024-05-12 01:48:03 +02:00
Alexey Milovidov
23cf6d0d8b
Useless changes
2024-05-11 22:51:57 +02:00
Danila Puzov
f68b788f59
Tests and docs for serial, some fixes for generateSnowflakeID
2024-05-11 15:34:13 +03:00
Alexey Milovidov
eff0d7cb8b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into clang-18-ci
2024-05-11 14:15:38 +02:00
taiyang-li
dd6774e9fe
fix bugs
2024-05-11 11:03:51 +08:00
taiyang-li
f9d43c9a61
fix bugs
2024-05-11 10:58:24 +08:00
Michael Kolupaev
82e6a36bd4
Merge pull request #61966 from ClickHouse/constlc
...
Fix crash when calling some functions on const low-cardinality columns
2024-05-11 01:27:47 +00:00
Alexey Milovidov
17b815bcf9
Support for non-constant level in URLHash
2024-05-11 02:38:26 +02:00
Alexey Milovidov
81e03b8613
Fix error
2024-05-11 02:12:17 +02:00
Michael Kolupaev
c1ea1726b4
Remove weird special case in if() return type inference, to match multiIf()
2024-05-10 22:37:35 +00:00
Michael Kolupaev
6d3d0cfbcc
Revert the type change
2024-05-10 22:04:09 +00:00
Michael Kolupaev
95bdd81d26
Fix crash when calling some functions on const low-cardinality columns
2024-05-10 22:04:09 +00:00
Salvatore Mesoraca
5004c22583
Fix Array and Map support with Keyed hashing
...
When working with materialized key columns and rows containing Arrays
or Maps (implemented as Tuple's Arrays) with multiple values,
the keyed hash functions were erroneously refusing to proceed, because
they misinterpreted the output vector size.
Close #61497
which was reported as a security issue, but it didn't actually have any
security impact.
The usefulness of keyed hashing over Maps is also questionable, but
we support it for completeness.
2024-05-10 18:45:10 +02:00
avogar
cd3604f235
Remove trailing whitespaces
2024-05-10 14:14:17 +00:00
avogar
fb20e80db4
Better test, fix style
2024-05-10 13:23:19 +00:00
avogar
60c721c21b
Fix build after conflict resolution
2024-05-10 12:20:27 +00:00
Kruglov Pavel
6207f6f4a5
Merge branch 'master' into dynamic-data-type
2024-05-10 13:42:38 +02:00
avogar
e7c7eb159a
Apply suggestions from the code review
2024-05-10 11:32:27 +00:00
Alexey Milovidov
dd58af7d4f
Merge branch 'master' of github.com:ClickHouse/ClickHouse into clang-18-ci
2024-05-10 07:17:39 +02:00
Alexey Milovidov
4ff1465927
Useless changes
2024-05-10 06:40:00 +02:00
Alexey Milovidov
ced5cc1644
Useless changes
2024-05-10 05:55:04 +02:00
Alexey Milovidov
46c99476d0
Useless changes
2024-05-10 05:23:47 +02:00
Alexey Milovidov
426a51b624
Useless changes
2024-05-10 04:53:29 +02:00
taiyang-li
d2af8b5e23
change as request
2024-05-10 10:29:53 +08:00
Michael Kolupaev
1b43c58489
Merge pull request #62087 from ClickHouse/checkmate
...
Avoid crashing on column type mismatch in a few dozen places
2024-05-09 23:59:59 +00:00
Maksim Galkin
afb47e4183
.
2024-05-09 19:32:43 +00:00
Maksim Galkin
3e7041c1f4
.
2024-05-09 18:33:46 +00:00
Maksim Galkin
ff9c0934ce
changes in tests and functions because of time zone
2024-05-09 17:52:50 +00:00
Danila Puzov
412805c99e
Add serial, generateSnowflakeID, generateUUIDv7 functions
2024-05-09 19:38:19 +03:00
Maksim Galkin
f52c24f753
tests fixes
2024-05-09 08:18:02 +00:00
Alexey Milovidov
224e1940ae
Useless changes
2024-05-09 03:58:34 +02:00
Alexey Milovidov
95f12ef274
Useless changes
2024-05-09 01:08:33 +02:00
Maksim Galkin
c82687c9a6
fixes + functions docs
2024-05-08 22:17:59 +00:00
Maksim Galkin
2f8341d8c1
style
2024-05-08 16:52:36 +00:00
Maksim Galkin
f4990f26d9
fixes
2024-05-08 16:38:53 +00:00
Alexey Milovidov
4f73b3b4cb
Merge pull request #63532 from ClickHouse/revert-63525-revert-63443-fix-index-analysis-datetime64
...
Revert "Revert "Fix index analysis for `DateTime64`""
2024-05-08 18:33:59 +02:00
Yarik Briukhovetskyi
767e32d566
Merge pull request #63406 from yohannj/fix_error_codes
...
Update ErrorCodes for functions using NUMBER_OF_ARGUMENTS_DOESNT_MATCH
2024-05-08 15:12:00 +00:00
Raúl Marín
7eb5c9354b
Revert "Revert "Fix index analysis for DateTime64
""
2024-05-08 16:44:37 +02:00
Raúl Marín
1e03649826
Revert "Fix index analysis for DateTime64
"
2024-05-08 16:14:15 +02:00
vdimir
063db33548
verbose error
2024-05-07 14:20:49 +00:00
Alexey Milovidov
a81f21ea8c
Fix it
2024-05-07 06:12:11 +02:00
Michael Kolupaev
4b9819a8f5
Update call sites added since last commit
2024-05-06 22:25:32 +00:00
Michael Kolupaev
694a8ca819
Style
2024-05-06 22:09:09 +00:00
Michael Kolupaev
d14fc62d4d
Avoid crashing on column type mismatch in a few dozen places
2024-05-06 22:09:02 +00:00
Raúl Marín
02a5b010af
Merge pull request #63398 from Algunenano/i46335
...
Fix debug assert when using grouping WITH ROLLUP and LowCardinality types
2024-05-06 20:00:40 +00:00
Raúl Marín
8cdaa1a32a
Make grouping never return low cardinality
2024-05-06 14:36:04 +02:00
Yohann Jardin
ab7d457c51
Update ErrorCodes for functions using NUMBER_OF_ARGUMENTS_DOESNT_MATCH
2024-05-06 11:35:48 +02:00
李扬
c0ddd3df0b
Merge branch 'ClickHouse:master' into complex_map_key
2024-05-06 10:23:18 +08:00
Maksim Galkin
fb6c931262
Style fixes
2024-05-04 22:49:10 +00:00
Alexey Milovidov
7ac5821a23
Merge pull request #63074 from ClickHouse/local-less-directories
...
Less directories in clickhouse-local
2024-05-05 00:19:31 +02:00
Maksim Galkin
32f267999d
changeDate implementation fixes
2024-05-04 21:28:32 +00:00
Alexey Milovidov
ed1bbd0bd0
Merge branch 'master' into local-less-directories
2024-05-03 02:35:44 +02:00
Nikita Taranov
1e824293fb
Merge branch 'master' into deprecate_errorprone_functions
2024-05-02 19:41:48 +02:00
Robert Schulze
8a7b0c057f
Merge pull request #62852 from pet74alex/UUIDv7
...
Add UUIDv7-generating functions
2024-05-02 06:57:12 +00:00
Alexey Petrunyaka
d2070e5de4
Update FunctionsCodingUUID.cpp
...
Fix for build error after fix merge error
2024-04-30 21:51:15 +03:00
Nikita Taranov
8a82e8ab8b
Merge branch 'master' into deprecate_errorprone_functions
2024-04-30 20:50:45 +02:00
avogar
df92f42237
Fix tests, improve dynamic/variantElement functions, add more comments
2024-04-30 18:45:19 +00:00
Alexey Petrunyaka
668c83b1cb
Fix for memory sanitizer
2024-04-30 21:38:27 +03:00
Alexey Petrunyaka
dde34625f2
Revert "Remove UUIDv7ToDateTime due to memory sanitizer issues"
...
This reverts commit 0e8575fc07
.
2024-04-30 21:30:16 +03:00
Nikita Taranov
801355bd91
Merge branch 'master' into deprecate_errorprone_functions
2024-04-30 19:28:46 +02:00
Robert Schulze
0e8575fc07
Remove UUIDv7ToDateTime due to memory sanitizer issues
2024-04-30 15:29:42 +00:00
Maksim Galkin
8f11262666
ome style changes
2024-04-30 13:36:36 +00:00
Robert Schulze
c820bc31e5
Fix memory sanitizer report
2024-04-30 13:35:12 +00:00
Ubuntu
d84e272ed8
Add changeDate functions
2024-04-30 13:15:23 +00:00
Robert Schulze
5660769a4b
Cosmetics, pt. V
2024-04-30 10:57:54 +00:00
Alexey Petrunyaka
93df0644ce
Fixes for the binary tidy build
2024-04-30 12:10:12 +03:00
Jordi Villar
8c3a9bc9c7
Revert "Merge pull request #60598 from jrdi/week-default-mode"
...
This reverts commit 61df8aa466
, reversing
changes made to c6d21aebb5
.
2024-04-30 09:23:25 +02:00
Alexey Milovidov
817570c5e4
Merge branch 'master' into local-less-directories
2024-04-30 04:45:33 +02:00
Alexey Milovidov
006de3f94d
Merge pull request #63097 from canhld94/fix_abs_in_index
...
Fix incorrect judgement of of monotonicity of function abs
2024-04-30 04:28:16 +02:00
Alexey Petrunyaka
698578402e
Merge branch 'master' into UUIDv7
2024-04-30 00:44:50 +03:00
Alexey Petrunyaka
c8847d8f97
Fixes for spell-checker
2024-04-30 00:15:04 +03:00
Nikita Taranov
64ee0090cb
better
2024-04-29 22:00:56 +01:00
Nikita Taranov
f52870c8d2
impl
2024-04-29 21:34:23 +01:00
Alexey Petrunyaka
29e70f5004
In-source and Russian .md UUIDv7 docs synced with English .md docs
2024-04-29 21:04:44 +03:00
avogar
1ccae23170
Fix alter modify column for dynamic columns, make check part work for dynamic columns, fix style errors and tests
2024-04-29 17:05:31 +00:00
Antonio Andelic
fb375e7a74
Apply suggestions from code review
2024-04-29 14:59:31 +02:00
Igor Nikonov
f22c27c76b
Merge pull request #62610 from ClickHouse/fix-msan-uuid-string-to-num
...
Fix: msan in UUIDStringToNum
2024-04-29 11:56:10 +00:00
Duc Canh Le
4b7abbce68
fix abs monotonicity
...
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-04-29 01:33:48 +00:00
Robert Schulze
fcc77379ae
Cosmetics, pt. IV
2024-04-28 09:50:42 +00:00
Alexey Petrunyaka
74a9b713a8
Update generateUUIDv7.cpp
2024-04-27 21:47:14 +03:00
Alexey Milovidov
089cc25d9b
Less directories
2024-04-27 19:05:58 +02:00
Alexey Petrunyaka
6ef5df9845
Update generateUUIDv7.cpp
2024-04-27 19:43:08 +03:00
Alexey Petrunyaka
1c5c97f648
Update generateUUIDv7.cpp
2024-04-27 18:50:41 +03:00
Alexey Petrunyaka
e351b51ca3
Update generateUUIDv7.cpp
2024-04-27 18:42:08 +03:00
Alexey Petrunyaka
113ad9b8ba
Update generateUUIDv7.cpp
2024-04-27 18:16:21 +03:00
Alexey Petrunyaka
9235845988
Performance optimizations + docs and tests changes ( #4 )
2024-04-27 17:30:27 +03:00
Igor Nikonov
dd5dc25e65
Remove unnecessary check
2024-04-26 11:26:05 +00:00
avogar
ff12caf2e9
Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-data-type
2024-04-26 11:08:04 +00:00
avogar
69a3aa7bcf
Implement Dynamic data type
2024-04-26 11:02:33 +00:00
Robert Schulze
c68a96eec3
Cosmetics, pt. III
2024-04-26 10:21:44 +00:00
Robert Schulze
c3be6728c8
Cosmetics, pt. II
2024-04-26 10:12:16 +00:00
skyoct
bff72f3b27
batter
2024-04-26 09:06:17 +00:00
Igor Nikonov
a4a6581be3
UUIDStringToNum/UUIDNumToString: enforce second parameter to be constant
2024-04-25 17:12:50 +00:00
Igor Nikonov
ee7f862155
Merge remote-tracking branch 'origin/master' into fix-msan-uuid-string-to-num
2024-04-25 11:22:11 +00:00
Artem Mustafin
ea3d1e05c9
refactoring
2024-04-25 09:07:20 +00:00
Yarik Briukhovetskyi
51c65386f4
fix style
2024-04-25 09:07:20 +00:00
Yarik Briukhovetskyi
10f774658c
"of function" -> "for function"
2024-04-25 09:07:20 +00:00
Artem Mustafin
52f4c07512
add bit_step=2 and some tests
2024-04-25 09:07:20 +00:00
Artem Mustafin
5e2d6106d6
style
2024-04-25 09:07:20 +00:00
Artem Mustafin
961dcaab2e
add hilbert decode
2024-04-25 09:07:20 +00:00
Yarik Briukhovetskyi
b7706510b3
style check
2024-04-25 09:07:20 +00:00
Artem Mustafin
423131d778
refactoring + ut + description + ratio
2024-04-25 09:07:20 +00:00
Yarik Briukhovetskyi
13f023713c
restart CI
2024-04-25 09:07:20 +00:00
Artem Mustafin
874d7ca1f8
add unit test
2024-04-25 09:07:20 +00:00
Artem Mustafin
18387343b2
fixed algorithm + template for steps sizes
2024-04-25 09:07:20 +00:00
Artem Mustafin
fcdbb7b77b
code style + renaming
2024-04-25 09:07:20 +00:00
Artem Mustafin
9a8101ebdc
hilbert encode function added
2024-04-25 09:07:20 +00:00
Artem Mustafin
b2b9f5e53a
initial file of hilbertEncode + separate common functions code
2024-04-25 09:07:20 +00:00
kevinyhzou
cd2ad69101
review fix
2024-04-25 12:13:08 +08:00
kevinyhzou
a5d85398f9
Fix bug in from_unixtimestamp by joda syntax
2024-04-25 09:43:47 +08:00
Alexey Petrunyaka
3344f4342f
UUIDv7 tests & fix for MS UUID representation in UUIDToNum ( #2 )
...
* Update 02310_generate_multi_columns_with_uuid.sql
* Update 02310_generate_multi_columns_with_uuid.reference
* Update 00396_uuid.sql
* Update 00396_uuid.reference
* Update FunctionsCodingUUID.cpp
2024-04-24 21:47:07 +03:00
Alexey Katsman
ca4e2f581a
Add columns for values used in the formatting message into system.text_log
2024-04-23 17:26:56 +01:00
Alexey Petrunyaka
35d700a5af
Update generateUUIDv7.cpp small fixes for clang-tidy checks
2024-04-23 14:22:58 +03:00
Alexey Petrunyaka
9c744e50ec
Update generateUUIDv7.cpp for style check test
2024-04-23 12:55:17 +03:00
Alexey Petrunyaka
2ba6be6d8b
Small style fix in generateUUIDv7.cpp
2024-04-23 12:39:29 +03:00
Alexey Petrunyaka
447aa5bf69
Mistypes fixes in generateUUIDv7.cpp
2024-04-23 12:32:08 +03:00
Alexey Petrunyaka
c053d5e58e
Small fix in generateUUIDv7WithFastCounter documentation
2024-04-22 20:01:27 +03:00
pet74alex
142ce60b4a
Added UUIDToNum and UUDv7ToDateTime functions
2024-04-22 19:26:15 +03:00
pet74alex
d3a58ffbbd
Added generateUUIDv7* functions
2024-04-22 19:22:40 +03:00
Anton Popov
59125601a1
fix crash in function formatRow
2024-04-22 11:36:45 +00:00
skyoct
2f6db2ac47
fix: batter
2024-04-21 12:01:31 +00:00
vdimir
b981d2dba4
Merge pull request #62287 from ClickHouse/vdimir/internal_functions_fix
...
Fix __actionName, add tests for internal functions direct call
2024-04-17 13:16:18 +00:00
vdimir
b2e145659a
Merge pull request #62705 from jrdi/window-functions-uint16
...
Fix tumble[Start,End] and hop[Start,End] for bigger resolutions
2024-04-17 09:56:39 +00:00
Robert Schulze
61df8aa466
Merge pull request #60598 from jrdi/week-default-mode
...
Add setting `first_day_of_week` for function `toStartOfInterval`
2024-04-17 08:31:46 +00:00
Yarik Briukhovetskyi
ffeec296a1
Merge pull request #62335 from Misz606/patch-5
...
Added nano- micro- milliseconds unit for `date_trunc`
2024-04-16 23:16:46 +00:00
Jordi Villar
9ed1b9412f
Merge remote-tracking branch 'upstream/master' into week-default-mode
2024-04-16 23:01:25 +02:00
Jordi Villar
7134ed3802
Merge remote-tracking branch 'upstream/master' into window-functions-uint16
2024-04-16 23:00:43 +02:00
Robert Schulze
3272d75ec8
Merge pull request #62583 from KevinyhZou/improve_utc_timestamp_transform
...
Improve performance of `(to|from)_utc_timestamp` functions
2024-04-16 16:45:45 +00:00
Jordi Villar
09cf421940
Fix tumble[Start,End] and hop[Start,End] for resolutions bigger than a day
2024-04-16 17:54:52 +02:00
Robert Schulze
4e881be128
Merge pull request #62634 from liuneng1994/std-except-parseDateTIme
...
Speed up `parseDateTime[InJodaSyntax]Or(Null|Zero)` on invalid inputs
2024-04-16 13:42:10 +00:00
Robert Schulze
08e5c2ba4d
Revert "Speed up splitByRegexp
"
2024-04-16 14:32:39 +02:00
Robert Schulze
2ac7a44077
Cleanup error handling
2024-04-16 10:08:37 +00:00
Robert Schulze
b06ef89f6b
Add [[nodiscard]] to make things more safe
2024-04-16 09:56:09 +00:00
Robert Schulze
3257780ce3
Merge pull request #62392 from bigo-sg/opt_memchr
...
Speed up `splitByRegexp`
2024-04-16 08:07:49 +00:00
liuneng
1483cbacdf
add macro
2024-04-16 11:09:04 +08:00
taiyang-li
41bbe35e1c
remove useless comment
2024-04-16 10:31:19 +08:00
taiyang-li
8c0d2cc0fc
remove opts of memory allocation in function tokens
2024-04-16 10:29:25 +08:00
Robert Schulze
7dc05d092b
Merge remote-tracking branch 'rschu1ze/master' into be-less-boring-32
2024-04-15 16:35:10 +00:00
Robert Schulze
8a2d052187
Fix typo
2024-04-15 14:08:14 +00:00
Robert Schulze
3db2cbef73
Cosmetics
2024-04-15 10:57:00 +00:00
Robert Schulze
8c9f89a2f5
Cosmetics
2024-04-15 10:38:29 +00:00
Robert Schulze
a98cba351d
Cosmetics
2024-04-15 08:37:26 +00:00
liuneng
f5184b6b7d
fix style
2024-04-15 16:02:20 +08:00
LiuNeng
3d87a887ec
Merge branch 'master' into std-except-parseDateTIme
2024-04-15 15:51:05 +08:00
liuneng
1c1054b413
optimize error handling using expected
2024-04-15 15:47:39 +08:00