-
Notifications
You must be signed in to change notification settings - Fork 5
ice: Use classes to create describe metadata instead of stringBuilder. #21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
699f16a
Use classes to create describe metadata instead of stringBuilder.
subkanthi 4dc8ea4
Add TableMetadata class.
subkanthi 0560c40
ice: Removed lambok depedency and replaced with record.
subkanthi d222fef
ice: reformatting of Tablemetadata.
subkanthi 7963453
ice: reformatting of Tablemetadata.
subkanthi ca59d54
ice: Removed option to include metrics.
subkanthi 3743ed8
ice: Reverted back change to use Tablemetadata instead of stringBuilder.
subkanthi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
ice/src/main/java/com/altinity/ice/internal/model/TableMetadata.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| package com.altinity.ice.internal.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public record TableMetadata(String kind, Metadata metadata, TableData data) { | ||
| public TableMetadata { | ||
| if (kind == null) { | ||
| kind = "Table"; | ||
| } | ||
| } | ||
|
|
||
| public record Metadata(String id) {} | ||
|
|
||
| public record TableData( | ||
| String schema_raw, | ||
| String partition_spec_raw, | ||
| String sort_order_raw, | ||
| Map<String, String> properties, | ||
| String location, | ||
| SnapshotInfo current_snapshot, | ||
| List<MetricsInfo> metrics) {} | ||
|
|
||
| public record SnapshotInfo( | ||
| long sequence_number, | ||
| long id, | ||
| Long parent_id, | ||
| long timestamp, | ||
| String timestamp_iso, | ||
| String timestamp_iso_local, | ||
| String operation, | ||
| Map<String, String> summary, | ||
| String location) {} | ||
|
|
||
| public record MetricsInfo(String file, long record_count, List<ColumnMetrics> columns) {} | ||
|
|
||
| public record ColumnMetrics( | ||
| String name, Long value_count, Long null_count, String lower_bound, String upper_bound) {} | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like TableMetadata, etc. records are defined but not actually used...