Skip to content

Conversation

@shidayang
Copy link
Contributor

HadoopTables support dynamic FileIO

@github-actions github-actions bot added the core label Apr 1, 2022
@shidayang
Copy link
Contributor Author

cc @jackye1995

this(new Configuration());
}

public HadoopTables(FileIO fileIO) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you please explain why do we need the other FileIO rather than initializing the HadoopFileIO by default ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review, My FileSystem which has some external function such as authentication is not a standard implementation. In other cases, Many Engines has owner FileSystem Manager so they don't need HadoopTables to initialize FileSystem.

Copy link
Member

Choose a reason for hiding this comment

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

If the FileSystem is not a standard HDFS implementation, then I will think the table is not a stand hadoop table. So why not just define the customized catalog & table implementation ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the one hand, The only difference is the FileIO. The constructor of HadoopTableOperations is protected and constructor args has FileIO, So the design philosophy of HadoopTableOperations is support Dynamic FileIO.

In other hand, like #1618

@shidayang shidayang closed this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants