Skip to content

WIP: Do not analyze unused columns - #91523

Closed
novikd wants to merge 14 commits into
masterfrom
avoid-analyzing-unused-columns
Closed

novikd wants to merge 14 commits into
masterfrom
avoid-analyzing-unused-columns

Conversation

@novikd

@novikd novikd commented Dec 4, 2025

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh

clickhouse-gh Bot commented Dec 4, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [82247a9]

Summary: ❌

job_name test_name status info comment
Fast test failure
02366_union_decimal_conversion FAIL cidb
02995_new_settings_history FAIL cidb
03741_insert_select_subquery_from_file FAIL cidb
00612_union_query_with_subquery FAIL cidb
03404_dynamic_in_interval_bug FAIL cidb
02359_send_logs_source_regexp FAIL cidb
00619_union_highlite FAIL cidb
Finish Workflow failure
python3 ./ci/jobs/scripts/workflow_hooks/pr_body_check.py failure
Build (amd_debug) dropped
Build (amd_asan) dropped
Build (amd_tsan) dropped
Build (amd_msan) dropped
Build (amd_ubsan) dropped
Build (amd_binary) dropped
Build (arm_asan) dropped
Build (arm_binary) dropped

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Dec 4, 2025
Comment thread src/Core/Settings.cpp
For example, in the query `SELECT a FROM view` only column `a` is needed from the view,
so other columns can be skipped during VIEW subquery analysis.

This optimization may allow executing semantically invalid queries without error,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide an example of an invalid query which can be safely executed?

@novikd novikd closed this Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants