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

Allows using Collection and/or UDT fields for ttl & writetime calculations #319

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

pravinbhat
Copy link
Collaborator

@pravinbhat pravinbhat commented Oct 18, 2024

What this PR does: Allows using Collection and/or UDT fields for ttl & writetime calculations. This is specifically helpful in scenarios where the only non-key columns are Collections and/or UDTs.

Which issue(s) this PR fixes:
Fixes #300

Checklist:

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

@pravinbhat pravinbhat requested a review from a team as a code owner October 18, 2024 16:14
@pravinbhat pravinbhat changed the title Made SCB file much short-lived & unique to each run Allows using Collection and/or UDT fields for ttl & writetime calculations Oct 18, 2024
@pravinbhat pravinbhat requested review from mieslep and msmygit October 18, 2024 16:25
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 👍🏼


# Max WRITETIME value of specified non-PK columns will be used for insert on target (overrides automatic setting)
#spark.cdm.schema.origin.column.writetime.names data_col1,data_col2,...
#spark.cdm.schema.origin.column.names.to.target partition_col1:partition_col_1,partition_col2:partition_col_2,...
spark.cdm.schema.ttlwritetime.calc.useCollections false
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick - can we get rid of the camelCase here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All multi-word phrases (keyspaceTable, runId, numParts, batchSize, splitRegex, etc.) are currently use camel case, so sticking with that standard.

@pravinbhat pravinbhat merged commit b16d664 into main Oct 21, 2024
9 checks passed
@pravinbhat pravinbhat deleted the feature/tables-with-only-collections branch October 21, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants