numerous-byte-87938
04/13/2023, 9:34 PMmodern-monitor-81461
04/14/2023, 12:41 AM# Dataset properties aspect.
custom_properties = table.metadata.properties.copy()
custom_properties["location"] = table.metadata.location
custom_properties["format-version"] = str(table.metadata.format_version)
if table.current_snapshot():
custom_properties["snapshot-id"] = str(table.current_snapshot().snapshot_id)
custom_properties["manifest-list"] = table.current_snapshot().manifest_list
dataset_properties = DatasetPropertiesClass(
tags=[],
description=table.metadata.properties.get("comment", None),
customProperties=custom_properties,
)
dataset_snapshot.aspects.append(dataset_properties)
2. I did not try with 0.12.0, but I can tell you that it works with 0.14. The spec hasn't changed in a while, so odds are it will work.
3. In my organization, we are still using the HadoopCatalog (I know, it's bad!) but we have a plan to migrate to REST catalog. Other work duties have prevented me to get to this task. I was hoping to migrate to REST catalog before pyiceberg 0.4.0 would be out, so I can test the new source with REST catalog. If 0.4.0 gets out before I'm ready, I don't mind creating a PR so you can test it. I can also stand up a REST catalog using Tabular's docker compose setup and test it, but I'm just short on time.
All that to say that if need be, I can submit a PR for others to have a look.