Skip to content

[HUDI-5567] Modified to make bootstrapping exception message clearer#7684

Merged
danny0405 merged 1 commit intoapache:masterfrom
weimingdiit:HUDI-5567
Jan 31, 2023
Merged

[HUDI-5567] Modified to make bootstrapping exception message clearer#7684
danny0405 merged 1 commit intoapache:masterfrom
weimingdiit:HUDI-5567

Conversation

@weimingdiit
Copy link
Copy Markdown
Contributor

Change Logs

Exception message maybe can clearer when determine schema from the data files in bootstrap.

Impact

nothing

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

} else {
throw new HoodieException("Could not determine schema from the data files.");
throw new HoodieException("Could not determine schema from the data files. Only two file types, orc and parquet, are supported.");
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could not determine schema from the data files, supported file formats: [ORC, PARQUET].

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@danny0405 thanks,danny. i have update this exception message

} catch (IOException e) {
throw new HoodieException("Could not determine schema from the data files.");
throw new HoodieException("Could not determine schema from the data files. Create orc reader error.");
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could not determine schema from the ORC data files.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@danny0405 thanks,danny. i have update this exception message

@hudi-bot
Copy link
Copy Markdown
Collaborator

CI report:

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

@danny0405
Copy link
Copy Markdown
Contributor

@danny0405 danny0405 merged commit d55a1ce into apache:master Jan 31, 2023
@weimingdiit
Copy link
Copy Markdown
Contributor Author

@danny0405 thanks for your review danny.

yihua pushed a commit that referenced this pull request Jan 31, 2023
Co-authored-by: jameswei <jameswei@didiglobal.com>
@yihua yihua added the priority:blocker Production down; release blocker label Feb 5, 2023
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants