You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the integrations that Iceberg supports out of the box (Spark, Pig), the frameworks decide how to generate paths for written files. However, some sources would prefer to pick their own paths for new files. Some questions for designing such an API include:
Should this be bundled with the FileIO API?
Should such a path generation API be concerned about the file's partition values? Partition metadata would be required for the default implementation to maintain existing behavior for Spark.
I think this API should pass in the partition tuple. Now that I think about it, the metadata location is determined by the TableOperations implementation, not by FileIO. I think it would make sense to keep those in the same place. So TableOperations would be responsible for determining where to place both metadata and data files, while FileIO would just handle low-level file tasks.
Remark: The paths module has to be a separate entity because once again, we will be instantiating it once on the driver and serializing the instance for executors. I think we can move the metadata file lookup to this module as well.
@mccheah, in that case is this something that we should add to the FileIO interface? It wouldn't be that much of a stretch to do path selection as well. What do you think?
Yup I don't have a strong opinion here, so let's bundle it with the FileIO interface. I'll propose a diff but I anticipate wanting to fine tune the exact method signatures as part of the PR review.
Activity
mccheah commentedon Dec 18, 2018
@vinooganesh @yifeih @rdblue
rdblue commentedon Dec 18, 2018
I think this API should pass in the partition tuple. Now that I think about it, the metadata location is determined by the
TableOperationsimplementation, not byFileIO. I think it would make sense to keep those in the same place. SoTableOperationswould be responsible for determining where to place both metadata and data files, whileFileIOwould just handle low-level file tasks.mccheah commentedon Jan 8, 2019
Ok I'll start taking a look at this now!
mccheah commentedon Jan 9, 2019
Remark: The paths module has to be a separate entity because once again, we will be instantiating it once on the driver and serializing the instance for executors. I think we can move the metadata file lookup to this module as well.
rdblue commentedon Jan 9, 2019
@mccheah, in that case is this something that we should add to the
FileIOinterface? It wouldn't be that much of a stretch to do path selection as well. What do you think?mccheah commentedon Jan 9, 2019
Yup I don't have a strong opinion here, so let's bundle it with the FileIO interface. I'll propose a diff but I anticipate wanting to fine tune the exact method signatures as part of the PR review.
mccheah commentedon Feb 26, 2019
Looks like this is done! I'll close it.
xabriel commentedon Feb 26, 2019
(For completeness, linking this issue to PR that made it to master: #87)
Merge pull request apache#55 from juma/PLAT-47949
AWS: Fix Tests3RestSigner on OSX (apache#7742) (apache#55)