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

Feature/transform fields #289

Merged
merged 12 commits into from
Aug 26, 2024
Merged

Feature/transform fields #289

merged 12 commits into from
Aug 26, 2024

Conversation

pravinbhat
Copy link
Collaborator

@pravinbhat pravinbhat commented Aug 23, 2024

Supports extracting value from a JSON column in Origin and map it to a specific field on Target

Checklist:

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

private List<Integer> correspondingIndexes;
private final List<Integer> counterIndexes;
protected Map<Featureset, Feature> featureMap;
public Logger logger = LoggerFactory.getLogger(this.getClass().getName());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you make this whole file change be smaller - it is difficult to understand what has actually changed in this PR?

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. I've requested a couple trivial changes.

RELEASE.md Outdated Show resolved Hide resolved
@@ -366,6 +366,27 @@ spark.cdm.perfops.ratelimit.target 20000
#spark.cdm.feature.explodeMap.target.name.key my_map_key
#spark.cdm.feature.explodeMap.target.name.value my_map_value


#===========================================================================================================
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we please add an example here on how it will look like? I know we haven't provided examples at other properties, but this is a bit nuanced and may help users understand how it could be used. Thank you in advance!

src/main/java/com/datastax/cdm/feature/ExtractJson.java Outdated Show resolved Hide resolved
src/main/java/com/datastax/cdm/feature/ExtractJson.java Outdated Show resolved Hide resolved
pom.xml Show resolved Hide resolved
msmygit and others added 2 commits August 26, 2024 10:26
@pravinbhat pravinbhat merged commit 27af3fe into main Aug 26, 2024
8 checks passed
@pravinbhat pravinbhat deleted the feature/transform-fields branch August 26, 2024 17:14
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.

5 participants