Skip to content
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

[GOBBLIN-1981] Renames writer.path.type config name as it has a type conflict with w… #3852

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

Will-Lo
Copy link
Contributor

@Will-Lo Will-Lo commented Jan 3, 2024

…riter.path

Dear Gobblin maintainers,

Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!

JIRA

Description

  • Here are some details about my PR, including screenshots (if applicable):

There are some properties in Gobblin that are not typesafe when put in a Config class object, this causes issues with GaaS passing those properties to Gobblin cluster.
To resolve this, we should fix the property names so that there are no conflicts.

The property in particular we want to change is writer.file.path.type that conflicts with writer.file.path due to sharing the same prefix but expanding the key when there's a value mapped to it (making it not type safe as it can't transform a string value to a map). We can rename this property to writer.file.pathType.

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:
    Backwards compatible

Commits

  • My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (18fba9e) 47.60% compared to head (1ed9fad) 48.95%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3852      +/-   ##
============================================
+ Coverage     47.60%   48.95%   +1.35%     
+ Complexity    11065     8065    -3000     
============================================
  Files          2159     1489     -670     
  Lines         85464    59151   -26313     
  Branches       9497     6815    -2682     
============================================
- Hits          40682    28960   -11722     
+ Misses        41080    27497   -13583     
+ Partials       3702     2694    -1008     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Will-Lo Will-Lo changed the title Renames writer.path.type config name as it has a type conflict with w… [GOBBLIN-1981] Renames writer.path.type config name as it has a type conflict with w… Jan 3, 2024
@Will-Lo Will-Lo marked this pull request as ready for review January 3, 2024 20:31
@Will-Lo Will-Lo merged commit 39ffa2f into apache:master Jan 3, 2024
6 checks passed
@Will-Lo Will-Lo deleted the rename-writer-path-type-config branch January 3, 2024 21:05
arjun4084346 pushed a commit to arjun4084346/gobblin that referenced this pull request Jan 10, 2024
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.

3 participants