[lake/lance]create Lake table support if not exists
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 625
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 97
Description
### Search before asking
- [x] I searched in the [issues](https://github.com/alibaba/fluss/issues) and found nothing similar.
### Fluss version
main (development)
### Please describe the bug 🐞
Create sql was executed twice.The second time, an error will be reported. `LakeCatalog` createTable method requires additional parameters.
```
CREATE TABLE if not exists test (
order_id BIGINT,
item_id BIGINT,
amount INT,
address STRING,
dt DATE
) WITH (
'table.datalake.enabled' = 'true',
'table.datalake.freshness' = '30s'
);
```
### Solution
_No response_
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the LakeCatalog createTable method and trace the CREATE TABLE IF NOT EXISTS path for tables configured with table.datalake.enabled. Reproduce the SQL example twice and inspect the second execution's error. Done means the repeated statement succeeds without losing the existing table configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100