Skip to content

Comments

[MINOR] make getting log block format standardized#7765

Closed
jonvex wants to merge 1 commit intoapache:masterfrom
jonvex:better_log_block_format
Closed

[MINOR] make getting log block format standardized#7765
jonvex wants to merge 1 commit intoapache:masterfrom
jonvex:better_log_block_format

Conversation

@jonvex
Copy link
Contributor

@jonvex jonvex commented Jan 28, 2023

Change Logs

Describe context and summary for this change. Highlight if any code was copied.

Impact

Describe any public API or user-facing feature change or any performance impact.

Risk level (write none, low medium or high below)

If medium or high, explain what verification was done to mitigate the risks.

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@nsivabalan nsivabalan added priority:medium Moderate impact; usability gaps type:refactor Code refactoring and cleanup labels Feb 8, 2023
@hudi-bot
Copy link
Collaborator

hudi-bot commented Feb 8, 2023

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

.map(HoodieLogBlock.HoodieLogBlockType::fromId);
}

public HoodieLogBlock.HoodieLogBlockType pickLogDataBlockFormat(HoodieFileFormat format) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rename the argument from format to baseFileFormat.

// Fallback to deduce data-block type based on the base file format
switch (format) {
case PARQUET:
return HoodieLogBlock.HoodieLogBlockType.PARQUET_DATA_BLOCK;
Copy link
Contributor

Choose a reason for hiding this comment

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

This switches the default log format from Avro to Parquet. I'm okay with this.

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Feb 26, 2024
@jonvex jonvex closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Moderate impact; usability gaps release-1.0.0 size:S PR with lines of changes in (10, 100] type:refactor Code refactoring and cleanup

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants