Merge pull request #59983 from ClickHouse/analyzer-fix-test_shard_level_const_function

Analyzer: Fix test_shard_level_const_function
This commit is contained in:
Alexey Milovidov 2024-02-15 02:57:39 +01:00 committed by GitHub
commit feb8020448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -5667,7 +5667,7 @@ ProjectionNames QueryAnalyzer::resolveFunction(QueryTreeNodePtr & node, Identifi
/// Do not constant fold get scalar functions /// Do not constant fold get scalar functions
bool disable_constant_folding = function_name == "__getScalar" || function_name == "shardNum" || bool disable_constant_folding = function_name == "__getScalar" || function_name == "shardNum" ||
function_name == "shardCount" || function_name == "hostName"; function_name == "shardCount" || function_name == "hostName" || function_name == "tcpPort";
/** If function is suitable for constant folding try to convert it to constant. /** If function is suitable for constant folding try to convert it to constant.
* Example: SELECT plus(1, 1); * Example: SELECT plus(1, 1);

View File

@ -10,7 +10,6 @@ test_mutations_with_merge_tree/test.py::test_mutations_with_merge_background_tas
test_passing_max_partitions_to_read_remotely/test.py::test_default_database_on_cluster test_passing_max_partitions_to_read_remotely/test.py::test_default_database_on_cluster
test_select_access_rights/test_main.py::test_alias_columns test_select_access_rights/test_main.py::test_alias_columns
test_settings_profile/test.py::test_show_profiles test_settings_profile/test.py::test_show_profiles
test_shard_level_const_function/test.py::test_remote
test_sql_user_defined_functions_on_cluster/test.py::test_sql_user_defined_functions_on_cluster test_sql_user_defined_functions_on_cluster/test.py::test_sql_user_defined_functions_on_cluster
test_storage_rabbitmq/test.py::test_rabbitmq_materialized_view test_storage_rabbitmq/test.py::test_rabbitmq_materialized_view
test_wrong_db_or_table_name/test.py::test_wrong_table_name test_wrong_db_or_table_name/test.py::test_wrong_table_name