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

Support create hudi table. #125

Open
gohalo opened this issue Aug 31, 2024 · 0 comments
Open

Support create hudi table. #125

gohalo opened this issue Aug 31, 2024 · 0 comments

Comments

@gohalo
Copy link
Contributor

gohalo commented Aug 31, 2024

Just like the java client routies.

HoodieTableMetaClient.withPropertyBuilder()
        .setTableType(HoodieTableType.MERGE_ON_READ)
        .setTableName(tableName)
        .setTableCreateSchema(SCHEMA)
        .setPayloadClassName(HoodieAvroPayload.class.getName())
        .initTable(conf, tablePath);

Currently, got some problems.

  1. object_store crate doesn't support to create directory. Because of the struct Path which without leading or trailing delimiters.
pub struct Path {
    /// The raw path with no leading or trailing delimiters
    raw: String,
}

But in most of cloud object store including minio, you could put empty to some path like /data/example/.hoodies/. Maybe we could change the value of private raw in the struct Path with unsafe codes, or, create some marker files like .hoodies/.schema/marker.

  1. We should create compatiable config files for Java properties, especilly for hoodies.properties.
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

No branches or pull requests

1 participant