Skip to content

Commit

Permalink
Core: Add Comment field to ViewProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh-jahagirdar committed Nov 29, 2023
1 parent d247b20 commit c6f057c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class ViewProperties {

public static final String METADATA_COMPRESSION = "write.metadata.compression-codec";
public static final String METADATA_COMPRESSION_DEFAULT = "gzip";
public static final String COMMENT = "comment";

private ViewProperties() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void readAndWriteValidViewMetadata() throws Exception {
.addVersion(version1)
.addVersion(version2)
.setLocation("s3://bucket/test/location")
.setProperties(ImmutableMap.of("some-key", "some-value"))
.setProperties(ImmutableMap.of("some-key", "some-value", ViewProperties.COMMENT, "some-comment"))
.setCurrentVersionId(2)
.upgradeFormatVersion(1)
.build();
Expand Down Expand Up @@ -218,7 +218,7 @@ public void viewMetadataWithMetadataLocation() throws Exception {
.addVersion(version1)
.addVersion(version2)
.setLocation("s3://bucket/test/location")
.setProperties(ImmutableMap.of("some-key", "some-value"))
.setProperties(ImmutableMap.of("some-key", "some-value", ViewProperties.COMMENT, "some-comment"))
.setCurrentVersionId(2)
.upgradeFormatVersion(1)
.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"view-uuid": "fa6506c3-7681-40c8-86dc-e36561f83385",
"format-version": 1,
"location": "s3://bucket/test/location",
"properties": {"some-key": "some-value"},
"properties": {"some-key": "some-value", "comment": "some-comment"},
"current-schema-id": 0,
"schemas": [
{
Expand Down

0 comments on commit c6f057c

Please sign in to comment.