Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #50609 . fetchDefaultCollation should be consistent with transform, but now fetchDefaultCollation tries to get the table metadata from all ALTER TABLE commands, and custom v2 tables may have side effects when returning the table properties. This PR fixes it to only get table metadata for targeting commands that will be handled in transform.

Why are the changes needed?

fix potential regressions

Does this PR introduce any user-facing change?

no

How was this patch tested?

N/A

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label May 7, 2025
@cloud-fan
Copy link
Contributor Author

cc @ilicmarkodb

@cloud-fan
Copy link
Contributor Author

merging to master/4.0

@cloud-fan cloud-fan closed this in 4574feb May 7, 2025
cloud-fan added a commit that referenced this pull request May 7, 2025
…efaultCollation should be consistent with transform

### What changes were proposed in this pull request?

This is a followup of #50609 . `fetchDefaultCollation` should be consistent with `transform`, but now `fetchDefaultCollation` tries to get the table metadata from all ALTER TABLE commands, and custom v2 tables may have side effects when returning the table properties. This PR fixes it to only get table metadata for targeting commands that will be handled in `transform`.

### Why are the changes needed?

fix potential regressions

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

N/A

### Was this patch authored or co-authored using generative AI tooling?

No

Closes #50808 from cloud-fan/follow.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 4574feb)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
yhuang-db pushed a commit to yhuang-db/spark that referenced this pull request Jun 9, 2025
…efaultCollation should be consistent with transform

### What changes were proposed in this pull request?

This is a followup of apache#50609 . `fetchDefaultCollation` should be consistent with `transform`, but now `fetchDefaultCollation` tries to get the table metadata from all ALTER TABLE commands, and custom v2 tables may have side effects when returning the table properties. This PR fixes it to only get table metadata for targeting commands that will be handled in `transform`.

### Why are the changes needed?

fix potential regressions

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

N/A

### Was this patch authored or co-authored using generative AI tooling?

No

Closes apache#50808 from cloud-fan/follow.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
…efaultCollation should be consistent with transform

### What changes were proposed in this pull request?

This is a followup of apache#50609 . `fetchDefaultCollation` should be consistent with `transform`, but now `fetchDefaultCollation` tries to get the table metadata from all ALTER TABLE commands, and custom v2 tables may have side effects when returning the table properties. This PR fixes it to only get table metadata for targeting commands that will be handled in `transform`.

### Why are the changes needed?

fix potential regressions

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

N/A

### Was this patch authored or co-authored using generative AI tooling?

No

Closes apache#50808 from cloud-fan/follow.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 280977e)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants