Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set createdon in BlobMetadata and is_iceberg in Drop Channel request #845

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

sfc-gh-hmadan
Copy link
Collaborator

  1. Set createdOn on the blob Metadata, which can be used in the service to populate the FileRegistrationRequest
  2. Set is_iceberg in /channels/drop API payload since it gets validated the same way as open channel (where we do have the is_iceberg API available)

@@ -142,7 +142,8 @@ static <T> Blob constructBlobAndMetadata(
chunkMetadataBuilder
.setMajorVersion(Constants.PARQUET_MAJOR_VERSION)
.setMinorVersion(Constants.PARQUET_MINOR_VERSION)
.setCreatedOn(0L)
// set createdOn in seconds
.setCreatedOn(System.currentTimeMillis() / 1000)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? Blobs already have create time in its property and its cheaper to get it there than to query metadata

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For having consistent metadata across XP-based DML inserts into iceberg tables and SDK-based inserts into iceberg tables.

Copy link
Contributor

@sfc-gh-alhuang sfc-gh-alhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@sfc-gh-hmadan sfc-gh-hmadan merged commit 27cd3a7 into master Sep 30, 2024
47 checks passed
@sfc-gh-hmadan sfc-gh-hmadan deleted the hmadan-set-createdon branch September 30, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants