Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core][spark] Fix create external table with schema evolution #4719

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented Dec 16, 2024

Purpose

Fix create external table with schema evolution, e.g.

CREATE TABLE t1 (a INT, b INT, c INT) USING paimon;
ALTER TABLE t1 DROP COLUMN b;
ALTER TABLE t1 ADD COLUMN b INT;

-- ok
CREATE TABLE t2 (a INT, c INT, b INT) USING paimon LOCATION '/path/to/t1';

-- error
CREATE TABLE t2 (a INT, b INT, c INT) USING paimon LOCATION '/path/to/t1';

Tests

API and Format

Documentation

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit c9eafb6 into apache:master Dec 16, 2024
11 of 12 checks passed
@Zouxxyy Zouxxyy deleted the dev/external-table branch December 16, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants