ClickHouse/src/Interpreters
Zhiguo Zhou 3d0f336643 Optimize predicate with toYYYYMM converter
Like toYear(PR #50062), the predicate with toYYYYMM could also be
optimized with its preimage. For example, we could transform the
predicate "toYYYYMM(c) = 202305" to "c >= '2023-05-01' AND c <=
'2023-05-31'", so that the invocation of toYYYYMM is avoided. The
similar transformation also applies to other comparisons.

This commit extends OptimizeDateFilterInPlaceVisitor by having it
recognize the toYYYYMM converter in the WHERE/PREWHERE clauses and
replace it with the above tranformed predicate in-place at the AST
level.
2023-06-01 10:20:45 +08:00
..
Access Merge branch 'master' into feature/show-secrets-option 2023-04-28 20:19:35 +03:00
Cache Fix 2023-05-30 21:29:08 +02:00
ClusterProxy Always communicate with local replica through loopback interface for parallel replicas (#48246) 2023-04-05 13:32:46 +02:00
examples Do not use PackedHashMap for non-POD for the purposes of layout 2023-05-19 06:07:21 +02:00
fuzzers Add fuzzer for data formats 2023-03-13 04:51:50 +01:00
JIT Optimize one nullable key aggregate performance (#45772) 2023-03-02 21:01:52 +01:00
MySQL Improve file includes 2023-03-24 03:44:52 +01:00
tests Switch Block::NameMap to google::dense_hash_map over HashMap 2023-05-12 05:52:57 +02:00
ActionLocksManager.cpp Remove specialization global lock/unlock from ActionLocksManager (#39215) 2022-07-21 01:29:35 +02:00
ActionLocksManager.h Remove specialization global lock/unlock from ActionLocksManager (#39215) 2022-07-21 01:29:35 +02:00
ActionsDAG.cpp Merge branch 'master' into aiven-sal/having_pr 2023-05-08 05:53:38 +03:00
ActionsDAG.h Merge pull request #48427 from ClickHouse/update_sort_desc_follow_up 2023-04-12 13:59:37 +02:00
ActionsVisitor.cpp Fix parameterized views when query parameter used multiple times in the query 2023-05-16 15:13:21 +02:00
ActionsVisitor.h Do not skip building set even when reading from remote 2023-05-02 21:31:56 +02:00
AddDefaultDatabaseVisitor.h Add parameterized RENAME queries 2023-02-14 13:01:06 +00:00
AddIndexConstraintsOptimizer.cpp Add support for substitute column 2023-03-17 13:38:01 +00:00
AddIndexConstraintsOptimizer.h
addMissingDefaults.cpp ActionsDAG rename index to outputs 2022-08-08 18:01:32 +02:00
addMissingDefaults.h
addTypeConversionToAST.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
addTypeConversionToAST.h
AggregateDescription.cpp Refactor FunctionNode 2022-12-02 19:15:26 +00:00
AggregateDescription.h
AggregateFunctionOfGroupByKeysVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
AggregationCommon.h Reduce inter-header dependencies 2023-05-02 21:15:18 +02:00
AggregationUtils.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
AggregationUtils.h fix style 2022-08-16 18:56:22 +02:00
Aggregator.cpp JIT aggregation nullable key fix 2023-05-28 21:05:17 +03:00
Aggregator.h Merge remote-tracking branch 'blessed/master' into arenita 2023-04-24 10:42:56 +02:00
Aliases.h
applyTableOverride.cpp Make clang-tidy happy 2022-10-18 11:40:12 +02:00
applyTableOverride.h
ApplyWithAliasVisitor.cpp Add more checkStackSize calls 2022-10-01 17:48:56 +02:00
ApplyWithAliasVisitor.h
ApplyWithGlobalVisitor.cpp Make clang-tidy happy 2022-10-18 11:40:12 +02:00
ApplyWithGlobalVisitor.h
ApplyWithSubqueryVisitor.cpp Add more checkStackSize calls 2022-10-01 17:48:56 +02:00
ApplyWithSubqueryVisitor.h Add more checkStackSize calls 2022-10-01 17:48:56 +02:00
ArithmeticOperationsInAgrFuncOptimize.cpp fix logic + better test 2023-02-22 13:30:57 +08:00
ArithmeticOperationsInAgrFuncOptimize.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
ArrayJoinAction.cpp SIZES_OF_ARRAYS_DOESN_MATCH --> SIZES_OF_ARRAYS_DONT_MATCH 2023-02-27 08:31:40 +00:00
ArrayJoinAction.h update getArrayJoinDataType/getArrayJoinColumn 2022-12-14 13:02:03 +00:00
ArrayJoinedColumnsVisitor.h Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
AsynchronousInsertLog.cpp add field with number of rows to async insert log 2023-04-25 00:31:55 +00:00
AsynchronousInsertLog.h Remove the duplicate pair of parentheses 2023-05-28 12:59:34 +08:00
AsynchronousInsertQueue.cpp Fixes for clang-17 2023-05-13 02:57:31 +02:00
AsynchronousInsertQueue.h Another atempt to fix test 2023-05-02 18:51:36 +00:00
AsynchronousMetricLog.cpp Merge branch 'master' into keeper-prometheus 2022-11-15 12:00:02 +00:00
AsynchronousMetricLog.h Remove the duplicate pair of parentheses 2023-05-28 12:59:34 +08:00
BloomFilter.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
BloomFilter.h
BloomFilterHash.h allow bloom filter for IPv4 and IPv6 2023-02-06 16:30:18 +00:00
CancellationCode.h
castColumn.cpp Only fix LowCardinality for now 2022-10-22 15:47:13 +08:00
castColumn.h Only fix LowCardinality for now 2022-10-22 15:47:13 +08:00
ClientInfo.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
ClientInfo.h add member function getLastForwardedFor to ClientInfo 2022-12-23 18:32:29 +00:00
Cluster.cpp fix comment 2023-05-19 17:53:22 +00:00
Cluster.h add docs 2023-04-11 16:32:40 +02:00
ClusterDiscovery.cpp Update src/Interpreters/ClusterDiscovery.cpp 2023-05-25 13:06:40 +02:00
ClusterDiscovery.h support passing fqdn to register cluster node in keeper 2023-05-20 12:41:48 +08:00
CMakeLists.txt
CollectJoinOnKeysVisitor.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
CollectJoinOnKeysVisitor.h JoinIdentifierPos::Constant -> NotColumn 2022-12-15 15:14:03 +00:00
ColumnAliasesVisitor.cpp
ColumnAliasesVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
ComparisonGraph.cpp Some fixes with tests 2023-03-16 15:59:48 +00:00
ComparisonGraph.h address PR review 2023-03-27 10:03:40 +00:00
ComparisonTupleEliminationVisitor.cpp Better ComparisonTupleEliminationVisitor 2023-03-21 16:23:09 +00:00
ComparisonTupleEliminationVisitor.h Add ComparisonTupleEliminationVisitor 2023-03-21 16:11:06 +00:00
ConcurrentHashJoin.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
ConcurrentHashJoin.h BackgroundSchedulePool should not have any query context 2023-02-22 10:50:51 +01:00
Context_fwd.h Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
Context.cpp Merge pull request #46661 from ClickHouse/42192_Lower_parallel_parsing_threads_with_globs 2023-05-30 08:53:08 +02:00
Context.h Merge pull request #46661 from ClickHouse/42192_Lower_parallel_parsing_threads_with_globs 2023-05-30 08:53:08 +02:00
convertFieldToType.cpp Fix modernize-loop-convert clang-tidy warning 2023-05-09 21:19:37 +02:00
convertFieldToType.h
ConvertFunctionOrLikeVisitor.cpp Move likePatternToRegexp from Functions/ to Common/ 2023-02-27 16:41:15 +00:00
ConvertFunctionOrLikeVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
ConvertStringsToEnumVisitor.cpp Add classes for new pass 2022-12-07 11:44:46 +00:00
ConvertStringsToEnumVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
CrashLog.cpp initial solution 2023-03-06 19:35:00 +03:00
CrashLog.h Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
createBlockSelector.cpp Update libdivide 2022-12-13 10:45:01 +01:00
createBlockSelector.h
CrossToInnerJoinVisitor.cpp Fix typo 2023-03-14 12:48:00 +01:00
CrossToInnerJoinVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
DatabaseAndTableWithAlias.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
DatabaseAndTableWithAlias.h Improve Asterisk and ColumnMatcher parser 2022-11-02 06:21:02 +00:00
DatabaseCatalog.cpp Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
DatabaseCatalog.h better 2023-03-27 23:51:35 +08:00
DDLTask.cpp Preserve initial_query_id for ON CLUSTER queries 2023-05-21 23:04:54 +02:00
DDLTask.h Preserve initial_query_id for ON CLUSTER queries 2023-05-21 23:04:54 +02:00
DDLWorker.cpp Preserve initial_query_id for ON CLUSTER queries 2023-05-21 23:04:54 +02:00
DDLWorker.h Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
DirectJoin.cpp Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
DirectJoin.h Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
DNSCacheUpdater.cpp Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
DNSCacheUpdater.h
DuplicateOrderByVisitor.cpp Remove PVS-Studio 2023-02-19 23:30:05 +01:00
DuplicateOrderByVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
EmbeddedDictionaries.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
EmbeddedDictionaries.h
evaluateConstantExpression.cpp Simple fix logical error in evaluate constant expression 2023-03-20 15:10:50 +00:00
evaluateConstantExpression.h
executeDDLQueryOnCluster.cpp Preserve initial_query_id for ON CLUSTER queries 2023-05-21 23:04:54 +02:00
executeDDLQueryOnCluster.h fix 2023-03-31 12:58:11 +02:00
executeQuery.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
executeQuery.h add query_id header in all queries 2023-02-13 16:44:54 +00:00
ExecuteScalarSubqueriesVisitor.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
ExecuteScalarSubqueriesVisitor.h refactoring near alter conversions 2023-05-25 22:54:54 +00:00
ExpressionActions.cpp Check getData() result in other places 2023-04-18 17:11:19 +02:00
ExpressionActions.h ReadFromMergeTree explain prewhere and row policy actions 2023-03-14 18:02:56 +01:00
ExpressionActionsSettings.cpp
ExpressionActionsSettings.h
ExpressionAnalyzer.cpp Pure parallel replicas: JOIN support (#49544) 2023-05-26 01:04:24 +02:00
ExpressionAnalyzer.h Pure parallel replicas: JOIN support (#49544) 2023-05-26 01:04:24 +02:00
ExpressionJIT.cpp Fix ClangTidy build 2022-12-21 00:22:46 +00:00
ExternalDictionariesLoader.cpp trivial change 2023-05-11 13:49:02 +02:00
ExternalDictionariesLoader.h address comments 2023-05-10 17:42:08 +02:00
ExternalLoader.cpp Charge only server memory for dictionaries 2023-05-21 22:53:52 +02:00
ExternalLoader.h Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
ExternalLoaderDatabaseConfigRepository.h
ExternalLoaderDictionaryStorageConfigRepository.cpp
ExternalLoaderDictionaryStorageConfigRepository.h
ExternalLoaderTempConfigRepository.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
ExternalLoaderTempConfigRepository.h
ExternalLoaderXMLConfigRepository.cpp Apply some CTAD 2023-03-02 13:36:47 +00:00
ExternalLoaderXMLConfigRepository.h
ExtractExpressionInfoVisitor.cpp
ExtractExpressionInfoVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
FilesystemCacheLog.cpp abort instead of __builtin_unreachable in debug builds 2022-10-07 21:49:08 +02:00
FilesystemCacheLog.h Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
FilesystemReadPrefetchesLog.cpp Unify priorities: lower value means higher priority (#50205) 2023-05-26 15:55:30 +02:00
FilesystemReadPrefetchesLog.h Unify priorities: lower value means higher priority (#50205) 2023-05-26 15:55:30 +02:00
FillingRow.cpp Fix suffix generation (see added test in commit 3355894) 2023-05-14 15:52:49 +00:00
FillingRow.h Fix suffix generation (see added test in commit 3355894) 2023-05-14 15:52:49 +00:00
formatWithPossiblyHidingSecrets.h separate name for format setting 2023-04-28 13:39:38 +00:00
FullSortingMergeJoin.h Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
FunctionMaskingArgumentCheckVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
FunctionNameNormalizer.cpp Function name normalization fix functions header 2022-10-04 17:29:33 +02:00
FunctionNameNormalizer.h Add comments to FunctionNameNormalizer. 2022-09-19 22:07:04 +08:00
GatherFunctionQuantileVisitor.cpp Merge remote-tracking branch 'upstream/master' into ncb/weighted-quantile-approx 2022-12-13 09:34:26 -08:00
GatherFunctionQuantileVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
GetAggregatesVisitor.cpp Allow to use higher-order functions in window expressions 2022-07-11 23:47:46 +00:00
GetAggregatesVisitor.h Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
getClusterName.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
getClusterName.h Implement referential dependencies for table engine "Distributed" 2022-12-13 11:09:42 +01:00
getColumnFromBlock.cpp fix getting subcolumn from in-memory data 2023-04-11 14:26:31 +00:00
getColumnFromBlock.h
getCustomKeyFilterForParallelReplicas.cpp Better 2023-03-03 15:14:49 +00:00
getCustomKeyFilterForParallelReplicas.h Better 2023-03-03 15:14:49 +00:00
getHeaderForProcessingStage.cpp Fixed tests 2023-03-01 18:05:07 +01:00
getHeaderForProcessingStage.h Analyzer support storage Merge 2023-02-16 12:17:03 +01:00
getTableExpressions.cpp Addressed review comments 2023-03-21 18:29:26 +01:00
getTableExpressions.h Addressed review comments 2023-03-21 18:29:26 +01:00
getTableOverride.cpp
getTableOverride.h
GinFilter.cpp Merge remote-tracking branch 'origin/master' into inv-index-cleanup 2023-01-24 10:09:42 +00:00
GinFilter.h Update src/Interpreters/GinFilter.h 2023-01-23 20:49:25 +01:00
GlobalSubqueriesVisitor.h Pure parallel replicas: JOIN support (#49544) 2023-05-26 01:04:24 +02:00
GraceHashJoin.cpp roll back 2023-05-22 17:45:18 +08:00
GraceHashJoin.h try to reserve hash table size 2023-05-22 17:42:38 +08:00
GroupByFunctionKeysVisitor.h Remove PVS-Studio 2023-02-19 23:30:05 +01:00
GroupingSetsRewriterVisitor.cpp
GroupingSetsRewriterVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
HashJoin.cpp roll back 2023-05-22 17:45:18 +08:00
HashJoin.h update 2023-05-22 17:45:18 +08:00
IdentifierSemantic.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
IdentifierSemantic.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
IExternalLoadable.cpp
IExternalLoadable.h
IExternalLoaderConfigRepository.h
IInterpreter.cpp More interesting settings for Stress Tests (#41534) 2023-02-21 15:36:23 +03:00
IInterpreter.h More interesting settings for Stress Tests (#41534) 2023-02-21 15:36:23 +03:00
IInterpreterUnionOrSelectQuery.cpp Fix crash in EXPLAIN PIPELINE for Merge over Distributed 2023-04-02 10:48:23 +02:00
IInterpreterUnionOrSelectQuery.h Fix crash in EXPLAIN PIPELINE for Merge over Distributed 2023-04-02 10:48:23 +02:00
IJoin.h Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
IKeyValueEntity.h better code for join with dict 2022-08-10 14:20:29 +00:00
InDepthNodeVisitor.h Modifiy visitor 2022-11-23 13:32:36 +00:00
InJoinSubqueriesPreprocessor.cpp Remove PVS-Studio 2023-02-19 23:30:05 +01:00
InJoinSubqueriesPreprocessor.h
inplaceBlockConversions.cpp Fix block structure mismatch for nullable LowCardinality column with default expression. 2023-03-13 17:57:07 +00:00
inplaceBlockConversions.h try to fix filling of missed Nested columns with multiple levels 2022-09-06 13:56:32 +00:00
InternalTextLogsQueue.cpp Modernize InternalTextLogsQueue::getPriorityName() 2023-01-20 11:09:35 +01:00
InternalTextLogsQueue.h Modernize InternalTextLogsQueue::getPriorityName() 2023-01-20 11:09:35 +01:00
InterpreterAlterNamedCollectionQuery.cpp Fix 2023-02-11 19:57:41 +01:00
InterpreterAlterNamedCollectionQuery.h Add commands CREATE/ALTER/DROP NAMED COLLECTION 2022-11-15 15:51:56 +01:00
InterpreterAlterQuery.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
InterpreterAlterQuery.h Fix trash around query kind, part 2 2023-02-01 03:31:31 +01:00
InterpreterBackupQuery.cpp Rename column "uuid" -> "id" in system.backups and allow user to set it in a query. 2022-07-27 09:04:10 +02:00
InterpreterBackupQuery.h
InterpreterCheckQuery.cpp
InterpreterCheckQuery.h
InterpreterCreateFunctionQuery.cpp Split UserDefinedSQLObjectsLoader to interface and implementation. 2022-10-13 10:32:32 +02:00
InterpreterCreateFunctionQuery.h Split UserDefinedSQLObjectsLoader to interface and implementation. 2022-10-13 10:32:32 +02:00
InterpreterCreateIndexQuery.cpp make tryEnqueueReplicatedDDL virtual 2022-09-16 16:25:32 +02:00
InterpreterCreateIndexQuery.h
InterpreterCreateNamedCollectionQuery.cpp Fix 2023-02-11 19:57:41 +01:00
InterpreterCreateNamedCollectionQuery.h Add commands CREATE/ALTER/DROP NAMED COLLECTION 2022-11-15 15:51:56 +01:00
InterpreterCreateQuery.cpp Fix crashing in case of Replicated database without arguments 2023-05-21 23:12:39 +02:00
InterpreterCreateQuery.h monor improvements 2023-03-28 23:47:45 +02:00
InterpreterDeleteQuery.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
InterpreterDeleteQuery.h Support delete from ... where syntax on mergetree tables 2022-07-15 12:32:41 +08:00
InterpreterDescribeCacheQuery.cpp Refactoring 2023-01-18 21:34:23 +01:00
InterpreterDescribeCacheQuery.h
InterpreterDescribeQuery.cpp Analyzer support distributed queries processing 2023-01-12 12:07:58 +01:00
InterpreterDescribeQuery.h
InterpreterDropFunctionQuery.cpp Split UserDefinedSQLObjectsLoader to interface and implementation. 2022-10-13 10:32:32 +02:00
InterpreterDropFunctionQuery.h
InterpreterDropIndexQuery.cpp make tryEnqueueReplicatedDDL virtual 2022-09-16 16:25:32 +02:00
InterpreterDropIndexQuery.h
InterpreterDropNamedCollectionQuery.cpp Fix 2023-02-11 19:57:41 +01:00
InterpreterDropNamedCollectionQuery.h Add commands CREATE/ALTER/DROP NAMED COLLECTION 2022-11-15 15:51:56 +01:00
InterpreterDropQuery.cpp Fix race between DROP MatView and RESTART REPLICAS (#47863) 2023-04-01 15:26:00 +03:00
InterpreterDropQuery.h Fix race between DROP MatView and RESTART REPLICAS (#47863) 2023-04-01 15:26:00 +03:00
InterpreterExistsQuery.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
InterpreterExistsQuery.h
InterpreterExplainQuery.cpp Deprecate EXPLAIN QUERY TREE with disabled analyzer. 2023-03-29 14:59:01 +00:00
InterpreterExplainQuery.h
InterpreterExternalDDLQuery.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
InterpreterExternalDDLQuery.h
InterpreterFactory.cpp Add new profile events for queries with subqueries 2023-05-26 18:28:40 +02:00
InterpreterFactory.h
InterpreterInsertQuery.cpp Add new profile events for queries with subqueries 2023-05-26 18:28:40 +02:00
InterpreterInsertQuery.h Make INSERT do more things in parallel to avoid getting bottlenecked on one thread 2023-05-05 00:49:27 +00:00
InterpreterKillQueryQuery.cpp fix tests 2023-03-07 14:25:28 +01:00
InterpreterKillQueryQuery.h
InterpreterOptimizeQuery.cpp [RFC] Replacing merge tree new engine (#41005) 2023-02-16 16:03:16 +03:00
InterpreterOptimizeQuery.h
InterpreterRenameQuery.cpp Fix table dependencies in case of failed RENAME TABLE 2023-04-12 11:11:05 +02:00
InterpreterRenameQuery.h Add parameterized RENAME queries 2023-02-14 13:01:06 +00:00
InterpreterSelectIntersectExceptQuery.cpp Fix trash around query kind, part 2 2023-02-01 03:31:31 +01:00
InterpreterSelectIntersectExceptQuery.h Fix trash around query kind, part 2 2023-02-01 03:31:31 +01:00
InterpreterSelectQuery.cpp Parallel replicas always skip unavailable ones (#50293) 2023-05-31 22:10:33 +02:00
InterpreterSelectQuery.h Fixes for parallel replicas (#50195) 2023-05-25 14:41:04 +02:00
InterpreterSelectQueryAnalyzer.cpp Fixed tests 2023-03-11 11:51:54 +01:00
InterpreterSelectQueryAnalyzer.h Merge remote-tracking branch 'origin/master' into optimize-compilation 2023-04-13 16:04:09 +02:00
InterpreterSelectWithUnionQuery.cpp Merge pull request #47725 from ClickHouse/46741_Parameterized_view_support_subquery 2023-03-22 09:05:26 +01:00
InterpreterSelectWithUnionQuery.h Fix trash around query kind, part 2 2023-02-01 03:31:31 +01:00
InterpreterSetQuery.cpp Improve file includes 2023-03-24 03:44:52 +01:00
InterpreterSetQuery.h Apply settings for EXPLAIN earlier (in the same way we do for SELECT). 2023-03-10 15:24:47 +00:00
InterpreterShowColumnsQuery.cpp More protection against SQL injection 2023-05-05 13:58:08 +00:00
InterpreterShowColumnsQuery.h Implement SHOW COLUMNS 2023-03-28 18:04:22 +00:00
InterpreterShowCreateQuery.cpp setting and some docs 2023-02-27 13:18:21 +00:00
InterpreterShowCreateQuery.h
InterpreterShowEngineQuery.cpp Sort output of SHOW <INFO> statements 2023-03-28 20:55:59 +00:00
InterpreterShowEngineQuery.h Update InterpreterShowEngineQuery.h 2023-02-01 04:57:58 +03:00
InterpreterShowIndexesQuery.cpp More protection against SQL injection 2023-05-05 13:58:08 +00:00
InterpreterShowIndexesQuery.h Initial version of SHOW INDEXES 2023-04-25 20:48:11 +00:00
InterpreterShowProcesslistQuery.cpp Sort descendingly by elapsed time 2023-03-31 09:36:03 +00:00
InterpreterShowProcesslistQuery.h
InterpreterShowTablesQuery.cpp Simplify FileCacheFactory 2023-04-15 16:15:20 +02:00
InterpreterShowTablesQuery.h Implement SHOW COLUMNS 2023-03-28 18:04:22 +00:00
InterpreterSystemQuery.cpp Merge branch 'master' into hanfei/fiu 2023-05-09 01:14:30 +02:00
InterpreterSystemQuery.h add 'strict' mode for sync replica, fix 00993 2023-03-16 16:04:42 +01:00
InterpreterTransactionControlQuery.cpp abort instead of __builtin_unreachable in debug builds 2022-10-07 21:49:08 +02:00
InterpreterTransactionControlQuery.h
InterpreterUndropQuery.cpp monor improvements 2023-03-28 23:47:45 +02:00
InterpreterUndropQuery.h support undrop table 2023-03-27 22:16:36 +08:00
InterpreterUseQuery.cpp
InterpreterUseQuery.h
InterpreterWatchQuery.cpp Remove PVS-Studio 2023-02-19 23:30:05 +01:00
InterpreterWatchQuery.h
interpretSubquery.cpp Pure parallel replicas: JOIN support (#49544) 2023-05-26 01:04:24 +02:00
interpretSubquery.h
InterserverCredentials.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
InterserverCredentials.h Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
InterserverIOHandler.h Merge pull request #45007 from ClickHouse/cancellable-mutex-integration 2023-01-25 11:15:46 +01:00
ITokenExtractor.cpp More conversions 2022-07-31 22:06:02 +00:00
ITokenExtractor.h Various cosmetic cleanups 2023-01-20 10:45:35 +00:00
joinDispatch.h Join enums refactoring 2022-07-29 18:35:05 +02:00
JoinedTables.cpp Remove -Wshadow suppression which leaked into global namespace 2023-04-13 08:46:40 +00:00
JoinedTables.h Addressed review comments 2023-03-21 18:29:26 +01:00
JoinSwitcher.cpp Update JoinSwitcher::switchJoin 2023-01-17 12:21:55 +00:00
JoinSwitcher.h JoinSwitcher don't use grace hash join 2022-10-26 16:09:11 +00:00
JoinToSubqueryTransformVisitor.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
JoinToSubqueryTransformVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
JoinUtils.cpp add comment 2023-05-22 10:17:40 +08:00
JoinUtils.h Review fixes 2023-01-20 16:30:34 +00:00
Lemmatizers.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
Lemmatizers.h Consolidate config_core.h into config.h 2022-09-28 13:31:57 +00:00
loadMetadata.cpp ThreadPool metrics introspection 2023-03-29 10:46:59 +02:00
loadMetadata.h Referential dependencies for RESTORE (#43834) 2022-12-02 15:05:46 +01:00
LogicalExpressionsOptimizer.cpp Add a comment. 2023-03-12 11:06:29 +00:00
LogicalExpressionsOptimizer.h LogicalExpressionsOptimizer: optimze for LowCardinality 2022-11-02 16:56:58 +08:00
MarkTableIdentifiersVisitor.cpp
MarkTableIdentifiersVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
MergeJoin.cpp Remove superfluous includes of logger_userful.h from headers 2023-04-10 17:59:30 +02:00
MergeJoin.h review fixes 2023-01-12 15:51:04 +00:00
MergeTreeTransaction.cpp fix some tests 2023-04-14 19:42:17 +02:00
MergeTreeTransaction.h Fix MergeTreeTransaction::isReadOnly 2023-03-07 16:16:51 +00:00
MergeTreeTransactionHolder.cpp
MergeTreeTransactionHolder.h
MetricLog.cpp Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
MetricLog.h Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
misc.h Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
MonotonicityCheckVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
MutationsInterpreter.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
MutationsInterpreter.h refactoring near alter conversions 2023-05-25 22:54:54 +00:00
MutationsNonDeterministicHelpers.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
MutationsNonDeterministicHelpers.h refactoring near alter conversions 2023-05-25 22:54:54 +00:00
NormalizeSelectWithUnionQueryVisitor.cpp forbid old ctor of Exception 2023-01-23 22:18:05 +01:00
NormalizeSelectWithUnionQueryVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
NullableUtils.cpp
NullableUtils.h
OpenTelemetrySpanLog.cpp Optimize opentelemetry_span_log 2023-05-08 05:15:28 +02:00
OpenTelemetrySpanLog.h Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
OptimizeDateFilterVisitor.cpp Optimize predicate with toYYYYMM converter 2023-06-01 10:20:45 +08:00
OptimizeDateFilterVisitor.h Optimize predicate with toYear converter 2023-05-25 09:11:51 +08:00
OptimizeIfChains.cpp add checks 2023-03-09 12:37:57 +01:00
OptimizeIfChains.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
OptimizeIfWithConstantConditionVisitor.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
OptimizeIfWithConstantConditionVisitor.h
OptimizeShardingKeyRewriteInVisitor.cpp
OptimizeShardingKeyRewriteInVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
parseColumnsListForTableFunction.cpp Geo types are production ready 2023-05-19 12:43:55 +02:00
parseColumnsListForTableFunction.h Geo types are production ready 2023-05-19 12:43:55 +02:00
PartLog.cpp add aliases for parts name and names 2023-04-17 13:18:40 +00:00
PartLog.h Use overload of PartLog::addNewPart with profile_events 2023-02-14 14:11:12 +00:00
PredicateExpressionsOptimizer.cpp Fix incorrect predicate push down with grouping sets (#46151) 2023-02-22 11:54:19 +01:00
PredicateExpressionsOptimizer.h
PredicateRewriteVisitor.cpp Merge branch 'master' into another_fix_for_an_ast_optimization 2022-09-21 19:05:08 +03:00
PredicateRewriteVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
PreparedSets.cpp Cleanups 2023-04-14 20:07:37 +02:00
PreparedSets.h Cleanups 2023-04-14 20:07:37 +02:00
processColumnTransformers.cpp
processColumnTransformers.h
ProcessList.cpp Rename ThreadGroupStatus to ThreadGroup 2023-04-07 15:31:48 +02:00
ProcessList.h Rename ThreadGroupStatus to ThreadGroup 2023-04-07 15:31:48 +02:00
ProcessorsProfileLog.cpp Add 'initial_query_id' field for system.processors_profile_log 2023-05-25 09:37:02 +08:00
ProcessorsProfileLog.h Add 'initial_query_id' field for system.processors_profile_log 2023-05-25 09:37:02 +08:00
ProfileEventsExt.cpp Merge remote-tracking branch 'origin/master' into optimize-compilation 2023-04-13 16:04:09 +02:00
ProfileEventsExt.h Remove unused ProfileEventsExt::dumpToString 2023-02-14 14:11:11 +00:00
QueryAliasesVisitor.cpp forbid old ctor of Exception 2023-01-23 22:18:05 +01:00
QueryAliasesVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
QueryLog.cpp Add 'partitions' field for system.query_log 2023-05-24 20:42:31 +08:00
QueryLog.h Add 'partitions' field for system.query_log 2023-05-24 20:42:31 +08:00
QueryNormalizer.cpp Update aliases when clone happens 2023-02-20 19:08:54 +01:00
QueryNormalizer.h Updated to support query parameters in different parts of query (SELECT, ORDERBY, GROUP BY), updated the approach in WHERE & HAVING, added tests for the same - 40907 Parameterized views as table functions 2022-11-28 19:05:01 +01:00
QueryPriorities.h
QueryThreadLog.cpp Optimize the system.query_log and system.query_thread_log tables by applying LowCardinality when appropriate 2023-05-05 01:36:01 +02:00
QueryThreadLog.h Use forward declaration of ThreadPool 2023-04-07 11:25:35 +02:00
QueryViewsLog.cpp Fix query_views_log with Window views 2022-09-09 13:46:53 +02:00
QueryViewsLog.h Switch Block::NameMap to google::dense_hash_map over HashMap 2023-05-12 05:52:57 +02:00
RedundantFunctionsInOrderByVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RemoveInjectiveFunctionsVisitor.cpp
RemoveInjectiveFunctionsVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RenameColumnVisitor.cpp
RenameColumnVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
replaceAliasColumnsInQuery.cpp
replaceAliasColumnsInQuery.h
replaceForPositionalArguments.cpp typo 2023-01-04 12:45:39 +01:00
replaceForPositionalArguments.h Fix 2022-07-30 18:42:22 +03:00
ReplaceQueryParameterVisitor.cpp Add the context to the exception message about query paramters 2023-04-23 09:34:12 +02:00
ReplaceQueryParameterVisitor.h
RequiredSourceColumnsData.cpp
RequiredSourceColumnsData.h Fixing a test with indexHint 2022-07-28 12:24:16 +00:00
RequiredSourceColumnsVisitor.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
RequiredSourceColumnsVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RewriteAnyFunctionVisitor.cpp
RewriteAnyFunctionVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RewriteArrayExistsFunctionVisitor.cpp fix build error 2023-02-10 11:27:10 +08:00
RewriteArrayExistsFunctionVisitor.h add passes for rewriting arrayexists 2023-02-09 16:30:53 +08:00
RewriteCountDistinctVisitor.cpp implement intersect + except distinct 2022-08-30 18:09:01 +08:00
RewriteCountDistinctVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RewriteCountVariantsVisitor.cpp fix some bad logics in ast level optimization 2022-12-02 17:56:23 +08:00
RewriteCountVariantsVisitor.h fix some bad logics in ast level optimization 2022-12-02 17:56:23 +08:00
RewriteFunctionToSubcolumnVisitor.cpp Remove some methods 2022-09-10 05:04:40 +02:00
RewriteFunctionToSubcolumnVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RewriteOrderByVisitor.cpp
RewriteOrderByVisitor.hpp Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
RewriteSumIfFunctionVisitor.cpp fix failed tests 2023-01-12 17:39:50 +08:00
RewriteSumIfFunctionVisitor.h improve count if rewrite 2022-12-30 14:48:58 +08:00
RowRefs.cpp Fix ASOF LEFT JOIN performance degradation (#47544) 2023-03-18 23:53:00 +01:00
RowRefs.h Make the code in Join less disgusting 2023-03-19 07:35:56 +01:00
SelectIntersectExceptQueryVisitor.cpp forbid old ctor of Exception 2023-01-23 22:18:05 +01:00
SelectIntersectExceptQueryVisitor.h Move InDepthNodeVisitor.h back to src/Interpreters. 2022-11-17 18:16:32 +01:00
SelectQueryOptions.h Moved is_create_parameterized_view out of Context , and added into ActionsMatcher::Data and SelectQueryInfo - 40907 Parameterized views as table functions 2022-10-21 14:45:28 +02:00
ServerAsynchronousMetrics.cpp Add new metrics to system.asynchronous_metrics 2023-02-25 21:13:15 +01:00
ServerAsynchronousMetrics.h Add new metrics to system.asynchronous_metrics 2023-02-25 21:13:15 +01:00
Session.cpp fix bad error messages 2023-04-04 20:21:22 +02:00
Session.h Separate AuthenticationData and AuthenticationType, small fixes 2023-04-24 15:12:45 +00:00
SessionLog.cpp Fix bcrypt enum value 2023-05-02 14:36:48 +00:00
SessionLog.h Separate AuthenticationData and AuthenticationType, small fixes 2023-04-24 15:12:45 +00:00
Set.cpp Cleanups 2023-04-14 16:12:18 +02:00
Set.h Cleanups 2023-04-14 16:12:18 +02:00
SetVariants.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
SetVariants.h Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
sortBlock.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
sortBlock.h
SortedBlocksWriter.cpp Enhancements for background merges (#49313) 2023-05-02 13:43:59 +02:00
SortedBlocksWriter.h Upd TemporaryFileOnDisk 2022-08-24 16:15:54 +00:00
SquashingTransform.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
SquashingTransform.h
StorageID.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
StorageID.h Preparation for libcxx(abi), llvm, clang-tidy 16 2023-03-19 17:25:41 +00:00
SubstituteColumnOptimizer.cpp Add support for substitute column 2023-03-17 13:38:01 +00:00
SubstituteColumnOptimizer.h
SynonymsExtensions.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
SynonymsExtensions.h Consolidate config_core.h into config.h 2022-09-28 13:31:57 +00:00
SystemLog.cpp Add 'settings' expression for system log tables 2023-05-28 12:59:34 +08:00
SystemLog.h Resubmit prefetches 2023-02-08 21:26:24 +01:00
TableJoin.cpp Allow ASOF JOIN over nullable right column 2023-05-16 16:23:53 +02:00
TableJoin.h Fix key not found error for queries with multiple StorageJoin 2023-04-25 11:28:54 +00:00
TableOverrideUtils.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
TableOverrideUtils.h
TablesStatus.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
TablesStatus.h
TemporaryDataOnDisk.cpp Fix incorrectly resolved conflicts after merge with master 2023-04-23 12:37:04 +02:00
TemporaryDataOnDisk.h Merge remote-tracking branch 'upstream/master' into cache-better-locks 2023-04-22 17:14:50 +02:00
TextLog.cpp add a column with a message pattern to text_log 2022-12-23 15:06:30 +01:00
TextLog.h add a column with a message pattern to text_log 2022-12-23 15:06:30 +01:00
threadPoolCallbackRunner.h Unify priorities: lower value means higher priority (#50205) 2023-05-26 15:55:30 +02:00
ThreadStatusExt.cpp Merge pull request #48787 from ClickHouse/background-memory-tracker 2023-05-09 07:58:36 +03:00
TraceCollector.cpp removed unnecessary check for thread's joinability 2023-05-09 19:43:39 +00:00
TraceCollector.h close pipe in run() if exception happens 2023-05-08 23:00:20 +00:00
TraceLog.cpp Revert "Merge pull request #38953 from ClickHouse/add-allocation-ptr-to-trace-log" 2022-12-27 14:28:13 +01:00
TraceLog.h Revert "Merge pull request #38953 from ClickHouse/add-allocation-ptr-to-trace-log" 2022-12-27 14:28:13 +01:00
TransactionLog.cpp release shared ptrs after finishing a transaction 2023-03-04 22:07:59 +01:00
TransactionLog.h release shared ptrs after finishing a transaction 2023-03-04 22:07:59 +01:00
TransactionsInfoLog.cpp First try at reducing the use of StringRef 2022-07-17 17:26:02 +00:00
TransactionsInfoLog.h
TransactionVersionMetadata.cpp resolve race in getCSNAndAssert 2023-02-15 18:16:39 +01:00
TransactionVersionMetadata.h
TranslateQualifiedNamesVisitor.cpp Better formatting for exception messages (#45449) 2023-01-24 00:13:58 +03:00
TranslateQualifiedNamesVisitor.h Updated to get column data type based not function , not the query parameter type , added test for the same - 40907 Parameterized views as table functions 2022-12-19 15:05:38 +01:00
TreeCNFConverter.cpp Start implementing constraint optimizer 2023-03-16 09:30:55 +00:00
TreeCNFConverter.h Start implementing constraint optimizer 2023-03-16 09:30:55 +00:00
TreeOptimizer.cpp Optimize predicate with toYear converter 2023-05-25 09:11:51 +08:00
TreeOptimizer.h fix crash with multiif and constant condition and nullable arguments 2023-05-22 23:31:50 +00:00
TreeRewriter.cpp refactoring near alter conversions 2023-05-25 22:54:54 +00:00
TreeRewriter.h Updated to get column data type based not function , not the query parameter type , added test for the same - 40907 Parameterized views as table functions 2022-12-19 15:05:38 +01:00
WhereConstraintsOptimizer.cpp Add support for substitute column 2023-03-17 13:38:01 +00:00
WhereConstraintsOptimizer.h
WindowDescription.cpp Added WINDOW functions support 2022-10-24 10:22:20 +02:00
WindowDescription.h Improve file includes 2023-03-24 03:44:52 +01:00
ZooKeeperLog.cpp Update enum for ZooKeeperLog 2023-04-19 14:07:38 +02:00
ZooKeeperLog.h Add duration_ms into system.zookeeper_log 2022-07-28 22:34:51 +03:00