Commit Graph
203 Commits
Author SHA1 Message Date
Pedro Ferreira ae65b76b80 Merge remote-tracking branch 'origin/master' into more-fuzz2 2026-06-10 07:57:44 +00:00
Pedro Ferreira 414e5871fe Don't send too large queries to the server 2026-06-09 07:58:56 +00:00
Pedro Ferreira 6214c81ba2 Implement new array join oracle and fixes 2026-06-08 12:26:45 +00:00
Pedro Ferreira 04eaca108c Update probabilities 2026-06-08 09:56:24 +00:00
Pedro Ferreira befb83b883 Check if enabled 2026-06-05 15:55:20 +00:00
Pedro Ferreira efc902432a format and new dump table oracle options, let's test 2026-06-05 15:35:49 +00:00
Alexey Milovidov ab6cd89b58 Merge remote-tracking branch 'origin/master' into fix-compiler-warnings
# Conflicts:
#	src/AggregateFunctions/fuzzers/aggregate_function_state_deserialization_fuzzer.cpp
#	src/Client/BuzzHouse/AST/SQLProtoStr.cpp
#	src/Functions/UserDefined/UserDefinedWebAssembly.cpp
#	src/IO/examples/parse_int_perf.cpp
#	src/Processors/QueryPlan/Optimizations/removeUnusedColumns.cpp
#	src/TableFunctions/TableFunctionMergeTreeAnalyzeIndexes.cpp
2026-05-29 02:17:22 +00:00
Pedro Ferreira 44f26e864b Address review comments 2026-05-21 15:41:24 +00:00
Pedro Ferreira e5d32b13c4 Fix for dictionaries dump oracle 2026-05-19 18:24:06 +00:00
Alexey Milovidov 7a2f9f408a Merge remote-tracking branch 'origin/master' into fix-compiler-warnings 2026-05-19 15:05:56 +00:00
Pedro Ferreira 6ae08767ea Generate Paimon tables in Spark 2026-05-14 14:08:05 +00:00
Pedro Ferreira 4bcf814581 Format, compilation fix and review comments 2026-05-14 12:22:56 +00:00
Pedro Ferreira c29f57ce30 Use dump table oracle for views and dictionaries 2026-05-13 16:29:34 +00:00
Alexey Milovidov e76298231e Merge remote-tracking branch 'origin/master' into fix-compiler-warnings
# Conflicts:
#	src/Interpreters/InterpreterDropQuery.cpp
#	src/Processors/QueryPlan/Optimizations/optimizeLazyMaterialization.cpp
2026-04-09 20:13:51 +00:00
Raúl MarínandClaude Opus 4.6 0d4eb1b2c8 Handle MEMORY_LIMIT_EXCEEDED gracefully in AST fuzzer
The AST fuzzer was reporting false failures when the server hit its
memory limit. `MEMORY_LIMIT_EXCEEDED` means the server correctly
rejected an expensive fuzzed query, not that it died.

Two fixes:
- In `FuzzLoop.cpp`, treat `MEMORY_LIMIT_EXCEEDED` like
  `TOO_DEEP_RECURSION`: clear the error and continue fuzzing instead of
  attempting reconnection, failing, and exiting with code 241.
- In `run-fuzzer.sh`, treat `MEMORY_LIMIT_EXCEEDED` during the
  post-fuzzing liveness check as a transient condition (like
  `TOO_MANY_SIMULTANEOUS_QUERIES`) instead of declaring the server dead.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102000&sha=latest&name_0=PR&name_1=AST+fuzzer+%28arm_asan_ubsan%29

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-08 13:12:51 +02:00
Alexey MilovidovandClaude Opus 4.6 9e8156c228 Merge origin/master into fix-compiler-warnings
Resolve merge conflicts:
- `base/base/coverage.cpp`: take master's version which removed the old
  sanitizer coverage guard/trace functions (replaced by LLVM profile-based
  coverage)
- `src/Client/BuzzHouse/AST/SQLProtoStr.cpp`: take master's unified
  `CONV_FN(SQLIdentifier, ident)` replacing the individual per-type
  converter functions

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-07 02:59:51 +02:00
Pedro Ferreira bd0d53772b Look for error 2026-03-31 16:24:40 +00:00
Pedro Ferreira f991db459a AI fixes and missing header 2026-03-31 12:18:45 +00:00
Pedro Ferreira 7ed077b548 Use hex encoding and decoding for logs 2026-03-30 09:24:22 +00:00
Alexey MilovidovandClaude Opus 4.6 16c01d8556 Fix build failures from new -Wmissing-prototypes and -Wdisabled-macro-expansion warnings
- Fix `io_destroy` prototype mismatch in `AIO.h` for FreeBSD (declared as
  `int io_destroy(void)` but defined as `int io_destroy(int ctx)`)
- Add forward declarations for `LLVMFuzzerInitialize` and
  `LLVMFuzzerTestOneInput` in fuzzer files, and make file-local helper
  functions `static` to fix `-Wmissing-prototypes` in arm_fuzzers build
- Add `extern "C"` forward declaration for `reallocarray` in `malloc.cpp`
  to fix `-Wmissing-prototypes` in ppc64le build
- Suppress `-Wdisabled-macro-expansion` in `FuzzLoop.cpp` because musl
  defines `stderr` as `(stderr)` which is a recursive macro

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-30 02:51:36 +00:00
Pedro Ferreira 20d4d31c21 Allow nasty identifiers in databases, tables, views and dictionaries. Large cleanup 2026-03-26 15:43:51 +00:00
Pedro Ferreira 6ec91dad64 Style fix 2026-03-25 11:31:42 +00:00
Pedro Ferreira 9abff5ec62 Log create user queries 2026-03-25 11:05:28 +00:00
Pedro Ferreira bfe5c8506a AI fixes 2026-03-25 10:50:34 +00:00
Pedro Ferreira de4339ba84 Fixing row policy oracle 2026-03-25 10:20:28 +00:00
Pedro Ferreira 8620e242b3 Fix AST fuzzer INSERT dumps 2026-03-20 09:23:00 +00:00
Pedro FerreiraandGitHub db93500753 Merge branch 'master' into fuzz-policy 2026-03-17 12:08:19 +01:00
Pedro Ferreira 26567229db Use role 2026-03-16 16:23:27 +00:00
Pedro Ferreira 98005f46f7 Disable row policy oracle 2026-03-16 13:51:12 +00:00
Pedro Ferreira ec79c844b1 Add row policy oracle 2026-03-16 13:10:07 +00:00
Raúl MarínandClaude Opus 4.6 6aa187da03 Reduce CurrentThread.h include fan-out to cut compilation cascade
- Remove `CurrentThread.h` from high-fan-out headers: `ProcessList.h`,
  `IQueryPlanStep.h`, `DDLWorker.h`, `TCPHandler.h`, `AggregatingTransform.h`,
  `ParallelParsingInputFormat.h`, `StorageTableFunction.h`, `parseSyslogLevel.h`,
  `EmbeddedRocksDBBulkSink.h`, `BlockIO.h`, `LocalConnection.h`,
  `StorageMaterializedView.h`, `HTTPHandler.h`
- Extract `QueryScope` from `CurrentThread` into standalone `Common/QueryScope.h`
  with its own `.cpp`, replacing the nested `CurrentThread::QueryScope` class
- Extract `getCurrentThreadGroup` free function into `Common/ThreadGroupSwitcher.h`,
  replacing `CurrentThread::getGroup()` in template headers:
  `threadPoolCallbackRunner.h`, `ParallelFormattingOutputFormat.h`,
  `HashedDictionaryParallelLoader.h`, `UniqExactSet.h`, `HashedDictionary.h`,
  `StatusRequestsPool.h`
- De-inline `MemoryTrackerSwitcher` ctor/dtor into `MemoryTrackerSwitcher.cpp`
- De-inline `ResourceGuard::Request::wait` into `ResourceGuard.cpp`
- De-inline `ManyAggregatedData` destructor into `AggregatingTransform.cpp`
- De-inline `QueryStatus::updateProgressIn/Out` into `ProcessList.cpp`
- Add explicit `CurrentThread.h` includes to `.cpp` files that relied on
  transitive includes through the trimmed headers

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-12 14:54:34 +01:00
Pedro Ferreira 1cb65272c3 Add new count distinct oracle 2026-03-09 13:23:34 +00:00
Pedro Ferreira 6457f3fba3 Fix 2026-03-06 15:51:34 +00:00
Pedro Ferreira 0d4e94a215 Fixes 2026-03-06 11:54:27 +00:00
Pedro Ferreira c89a12b81e New roundtrip oracle and parsing tests 2026-03-05 12:52:41 +00:00
Pedro Ferreira f50b2c3fee Backport fixes from the server fuzzer 2026-02-27 14:51:41 +00:00
Pedro Ferreira 3ad1d4abc7 Update probs and fixes 2026-02-26 15:27:02 +00:00
Pedro Ferreira 44b7ee2e14 Add log messages 2026-01-24 10:57:34 +00:00
Pedro Ferreira 5dc02592b5 Modernize time limit, and set it for CI runs 2026-01-24 10:15:39 +00:00
Nikolai Kochetov de75d7355f Merge branch 'master' into use-intrusive-ptr-for-AST 2026-01-16 16:16:36 +01:00
Pedro Ferreira a4b4179399 Let's play with random probabilities a little 2026-01-13 10:32:45 +00:00
Nikolai Kochetov f4aa968b13 Use intrusive ptr for AST 2026-01-11 13:36:32 +01:00
Pedro Ferreira cb2ff93210 Increase rows size for a few jobs, give more table creation tries, less defaults 2026-01-07 17:05:05 +00:00
Pedro Ferreira 0d03df1481 Added basic Kafka support in the server fuzzer 2025-12-29 16:32:14 +00:00
Pedro Ferreira a0e5a90ae8 Fixes 2025-12-15 17:15:58 +00:00
Pedro Ferreira 690515323f Fixes 2025-12-15 12:07:57 +00:00
Pedro Ferreira c8e3e71727 Get rid of const casts 2025-12-12 13:57:48 +00:00
Pedro Ferreira 1eeeedd40c New alter_update oracle 2025-12-12 13:20:16 +00:00
Pedro Ferreira 3263fc6cf6 Add setting for health checks and fixes 2025-12-10 09:25:33 +00:00
Pedro Ferreira 67209506cc Added ClickHouse checks into BuzzHouse 2025-12-09 17:37:22 +00:00