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

[core] Expose file io for other compute system like trino. #2991

Closed
wants to merge 1 commit into from

Conversation

leaves12138
Copy link
Contributor

@leaves12138 leaves12138 commented Mar 12, 2024

I am working on paimon-trino. Paimon wants to use trino file system, but after serialize and deseialize table, file io will lose. (Trino file system can't be serialized, and every worker should use its own session to create file system). So I want to expose file io in table that we can't set trino file system in.

  • If paimon table need file io, it should be a FileIOTable.
  • CatalogContext should accept self-defined file io.

return createCatalog(context, classLoader, warehousePath, fileIO);
}

static Catalog createCatalog(CatalogContext context, FileIO fileIO) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just add FileIOLoader preferIOLoader to CatalogContext?

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