Skip to content

[MINOR] Removed useless checks from SqlBasedTransformers#11499

Merged
yihua merged 1 commit intoapache:masterfrom
wombatu-kun:MINOR_fix_sqlbasedtransformers
Jun 25, 2024
Merged

[MINOR] Removed useless checks from SqlBasedTransformers#11499
yihua merged 1 commit intoapache:masterfrom
wombatu-kun:MINOR_fix_sqlbasedtransformers

Conversation

@wombatu-kun
Copy link
Contributor

Change Logs

Removed checks in apply method of SqlQueryBasedTransformer and SqlFileBasedTransformer.
getStringWithAltKeys never returns null, if there is no config in properties - it throws IllegalArgumentExceprion (property xxx not found), so null-checking of the result is unreachable (useless) here.

Impact

none

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

none

Documentation Update

none

  • 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

@github-actions github-actions bot added the size:XS PR with lines of changes in <= 10 label Jun 24, 2024
@wombatu-kun wombatu-kun force-pushed the MINOR_fix_sqlbasedtransformers branch from ca09e62 to b0a476f Compare June 24, 2024 12:37
@github-actions github-actions bot added size:S PR with lines of changes in (10, 100] and removed size:XS PR with lines of changes in <= 10 labels Jun 24, 2024
@wombatu-kun wombatu-kun force-pushed the MINOR_fix_sqlbasedtransformers branch from b0a476f to 3d4d5b8 Compare June 24, 2024 13:48
@wombatu-kun wombatu-kun force-pushed the MINOR_fix_sqlbasedtransformers branch from 3d4d5b8 to c7ecfe4 Compare June 24, 2024 23:35
@wombatu-kun wombatu-kun requested a review from yihua June 24, 2024 23:37
@hudi-bot
Copy link
Collaborator

CI report:

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

Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

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

LGTM

@yihua yihua merged commit c5ff6a2 into apache:master Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants