apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.44k stars 959 forks source link

[core] add check for make directory for db location when creating database #4399

Closed FANNG1 closed 3 weeks ago

FANNG1 commented 3 weeks ago

Purpose

Linked issue: close #4396

According the API of mkdirs in FileIO, it may return false to represent mkdir failed, we should handle the false condition when creating database.

    boolean mkdirs(Path path) throws IOException;

Tests

API and Format

Documentation