fix(query): Fix the issue of the virtual column bind #17907
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
This PR addresses several issues related to virtual columns in Databend, focusing on stability and correctness.
Key Changes:
Fix: Virtual Column Binder Cast Issue:
Fix: Merge Into Stream Column Deletion:
MERGE INTOstatements where deleting a stream column could incorrectly lead to the deletion of a virtual column. This fix ensures that only the intended stream column is removed, preserving the integrity of virtual columns.Improvement: Virtual Column Data Read Validation:
Feature: Experimental Virtual Column Setting:
enable_experimental_virtual_column, to control the virtual column feature. This setting is disabled by default, reflecting the experimental nature of the feature and allowing users to opt-in.Future Work:
fixes: #[Link the issue here]
Tests
Type of change
This change is