ClickHouse/src
Kevin Michel edbeeaf6ec
Fix invalid JSON in column names
If the column name contains invalid UTF-8 sequences
and the output data types are all considered safe,
then the output will not be sanitized and the generated
JSON will be invalid.

A minimal reproduction case is :
`SELECT length('\x80') FORMAT JSONCompact`
where we auto-generate a non-UTF-8 column name with only
integer outputs, whereas :
`SELECT '\x80' FORMAT JSONCompact`
would be sanitized because the column type is String and
will trigger UTF-8 sanitization over the entire document.
2021-11-20 12:35:41 +01:00
..
Access Merge branch 'master' into nv/parts-uuid-move-shard-kill 2021-10-26 11:09:19 +00:00
AggregateFunctions Non-recursive implementation for TL and its functions 2021-10-03 18:02:04 +02:00
Backups Fix explicit 0 size for createReadBufferFromFileBase() 2021-10-24 18:58:22 +03:00
Bridge Move some files. 2021-10-16 17:03:50 +03:00
Client Merge pull request #30285 from kssenii/fix-local-exceptions 2021-10-24 19:54:59 +03:00
Columns Merge pull request #30014 from jinjunzh/master 2021-10-22 14:16:47 +03:00
Common Merge pull request #30663 from ClickHouse/fix_five_years_old_bug 2021-10-27 12:10:12 +03:00
Compression Remove one unused CompressedReadBufferFromFile ctor 2021-10-24 18:58:22 +03:00
Coordination Build fixes 2021-10-19 22:47:04 +03:00
Core Merge pull request #29735 from ClickHouse/fix-backward-compatibility-after-21196 2021-10-26 16:31:40 +03:00
Databases Merge pull request #29328 from aiven/kmichel-recover-replica-race 2021-10-27 16:43:21 +03:00
DataTypes Merge pull request #30219 from lhuang09287750/master 2021-10-21 09:38:55 +03:00
Dictionaries Merge pull request #30501 from kitaisreal/hashed-array-dictionary-optimize-read-multiple-attributes 2021-10-27 18:45:07 +03:00
Disks Update gtest_disk_encrypted for new readFile() interface 2021-10-27 09:37:26 +03:00
Formats Update obsolete comments. 2021-10-19 12:58:10 +03:00
Functions Merge pull request #30639 from ClickHouse/fix-30545 2021-10-26 16:29:18 +03:00
Interpreters Merge pull request #29202 from aiven/kmichel-replicated-database-alter-attach 2021-10-27 16:42:54 +03:00
IO Fix explicit 0 size for createReadBufferFromFileBase() 2021-10-24 18:58:22 +03:00
Parsers Merge pull request #29202 from aiven/kmichel-replicated-database-alter-attach 2021-10-27 16:42:54 +03:00
Processors Fix invalid JSON in column names 2021-11-20 12:35:41 +01:00
QueryPipeline Update obsolete comments. 2021-10-19 12:58:10 +03:00
Server Merge branch 'master' into fix-backward-compatibility-after-21196 2021-10-19 10:11:16 +00:00
Storages Merge pull request #30722 from ucasfl/filelog-engine 2021-10-27 23:35:03 +03:00
TableFunctions Merge pull request #29774 from kssenii/remote-connection 2021-10-24 19:38:01 +03:00
CMakeLists.txt Merge pull request #25969 from ucasfl/filelog-engine 2021-10-24 10:14:05 +03:00
NOTICE Remove DataStreams folder. 2021-10-15 23:18:20 +03:00