Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.20.2
-
None
-
Unknown
Description
a) The datalake component has a createFile operation, which returns a response of type
DataLakeFileClient, which represents inherently a specific directory. The issue is that subsequent operations do not make use of that instance, resulting in the fact that the directory seems to be always root. The proposal is
- to add a new exchange header on createFile, that can be used for further operations
- if that new exchange header is set for file operations, use the client from the header
That would allow to seamlessly use createFile, append, ... together while considering directories.
b) Furthermore, there is an additional flush option on the append operation, which IMHO might make sense to add
I created the pull request https://github.com/apache/camel/pull/9541 for these changes.