diff --git a/swh/dataset/exporters/orc.py b/swh/dataset/exporters/orc.py --- a/swh/dataset/exporters/orc.py +++ b/swh/dataset/exporters/orc.py @@ -243,6 +243,16 @@ ) ) + revision_header_writer = self.get_writer_for( + "revision_extra_headers", + directory_name="revision", + unique_id=self.uuids["revision"], + ) + for key, value in revision["extra_headers"]: + revision_header_writer.write( + (hash_to_hex_or_none(revision["id"]), key, value) + ) + def process_directory(self, directory): directory_writer = self.get_writer_for("directory") directory_writer.write((hash_to_hex_or_none(directory["id"]),)) diff --git a/swh/dataset/relational.py b/swh/dataset/relational.py --- a/swh/dataset/relational.py +++ b/swh/dataset/relational.py @@ -61,6 +61,11 @@ ("parent_id", "string"), ("parent_rank", "int"), ], + "revision_extra_headers": [ + ("id", "string"), + ("key", "binary"), + ("value", "binary"), + ], "directory": [ ("id", "string"), ],