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

[hive][spark] Support creating external table without schema when the table already exists #4638

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented Dec 4, 2024

Purpose

  • When the table already exists, we do not need to specify the schema when creating an external table (since it must be consistent with the old schema and can easily be written incorrectly).
  • TBLPROPERTIES can be a subset of the existing props, and for cross-engine compatibility, we have omitted the comparison of owner.

CREATE TABLE t USING paimon LOCATION 'xxxx'

extra updates:

  • not save provider to props when create table with spark

Deprecated modification - Support add new props when creating external tables, for example, when a table written in Flink is used to create an external table in Spark, in this case, new props such as {provider: paimon} need be added

Tests

API and Format

Documentation

@Zouxxyy Zouxxyy force-pushed the dev/create-table-location branch from aecaaf2 to 9767d5b Compare December 10, 2024 03:27
@Zouxxyy Zouxxyy force-pushed the dev/create-table-location branch from 8232c15 to 666caf9 Compare December 10, 2024 05:28
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 c6387a6 into apache:master Dec 10, 2024
13 checks passed
@Zouxxyy Zouxxyy deleted the dev/create-table-location branch December 10, 2024 07:02
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