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
{{ message }}
Repository navigation
Collect additional metadata while writing manifets #733
In order to avoid reading manifests to get stats in #675, we need to collect additional metadata when writing manifests. The minimum required information (num added/deleted records) can be gathered easily. The main question is how to store it.
Option 1
We can store the new metadata as we store the number of added/deleted/existing files.
Benefits:
We can always retrieve the additional information by reading manifests.
Drawbacks:
Affects what we actually store on disk.
Potentially increases the metadata size.
Option 2
We can introduce a serializable field of type Map<String, String> but don't store that on disk. Only instances of ManifestFile created via ManifestWriter will always contain all needed properties.
Benefits:
The metadata on disk doesn't change.
The metadata size stays the same.
Drawbacks
We cannot retrieve the additional information by reading manifests.
Does it make sense for ManifestFile to have stats like row-count, added-row-count, and deleted-row-count? I think those are the main ones that we care about that are not available because manifests already have file counts. I think it may make sense to add those to ManifestFile. 3 more longs aren't going to be a ton of space in the manifest list.
Activity
aokolnychyi commentedon Jan 10, 2020
@rdblue, how did you envision future extensions when you wrote
GenericManifestFileand what do you think makes sense in this case?rdblue commentedon Jan 15, 2020
Does it make sense for
ManifestFileto have stats like row-count, added-row-count, and deleted-row-count? I think those are the main ones that we care about that are not available because manifests already have file counts. I think it may make sense to add those toManifestFile. 3 more longs aren't going to be a ton of space in the manifest list.aokolnychyi commentedon Jan 27, 2020
This was done.