Skip to content

Use MetadataLogFileIndex to get latest version in AddDateVersionTransformer #308

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

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jozefbakus
Copy link
Collaborator

Use MetadataLogFileIndex to get latest version in AddDateVersionTransformer

@jozefbakus jozefbakus self-assigned this May 19, 2025
Copy link
Collaborator

@kevinwallimann kevinwallimann left a comment

Choose a reason for hiding this comment

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

lgtm, only formatting

fileCatalog.partitionSpec().partitions.map { partition =>
val row: InternalRow = partition.values
(row.getString(0), row.getInt(1))
}.filter { case (date, _) => date == reportDate }.map { case (_, version) => version }.toList
Copy link
Collaborator

Choose a reason for hiding this comment

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

Formatting could be clearer (.map and .toList on a new line)

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.

2 participants