apache / apache/paimon

[Feature] Support CREATE TABLE IF NOT EXISTS

Open
#7,048 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Motivation

When I use CREATE TABLE IF NOT EXISTS to create a table, if the table already exists, it will report an AlreadyExistsException error. Is this not very friendly? Can it support this syntax like hive?

### Solution

_No response_

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named in the issue. Start by locating the CREATE TABLE handling and the existing AlreadyExistsException behavior, then trace how SQL syntax reaches table creation. Done means CREATE TABLE IF NOT EXISTS succeeds without raising that exception when the table already exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.