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

Implemented customTTL feature #295

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Implemented customTTL feature #295

merged 1 commit into from
Sep 3, 2024

Conversation

pravinbhat
Copy link
Collaborator

@pravinbhat pravinbhat commented Sep 3, 2024

What this PR does: Implemented property spark.cdm.transform.custom.ttl to allow a custom constant value to be set for TTL instead of using the values from origin rows.

Which issue(s) this PR fixes:
Fixes #

Checklist:

  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@pravinbhat pravinbhat requested a review from a team as a code owner September 3, 2024 12:45
Copy link
Collaborator

@msmygit msmygit left a comment

Choose a reason for hiding this comment

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

lgtm 👍🏼

protected static Long getCustomTTL(IPropertyHelper propertyHelper) {
Long cttl = propertyHelper.getLong(KnownProperties.TRANSFORM_CUSTOM_TTL);
return null == cttl ? 0L : cttl;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick: formatting (indentation) looks incorrect here. could we get that fixed please?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@msmygit The diff here is only the the way the space are formatted. Existing ones are spaces & the new ones are tabs. I will do a separate commit after this PR is merged to use consistent formatting in the whole repo & will also commit the styling config in the repo so all can use the same styling.

@pravinbhat pravinbhat merged commit 4073b87 into main Sep 3, 2024
8 checks passed
@pravinbhat pravinbhat deleted the feature/custom-ttl branch September 3, 2024 20:53
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