Skip to content

PLUGIN-1656 Added a field for datatype validation to avoid validation.#212

Merged
vikasrathee-cs merged 1 commit intodata-integrations:developfrom
cloudsufi:validation_fix
Aug 3, 2023
Merged

PLUGIN-1656 Added a field for datatype validation to avoid validation.#212
vikasrathee-cs merged 1 commit intodata-integrations:developfrom
cloudsufi:validation_fix

Conversation

@vikasrathee-cs
Copy link
Contributor

@vikasrathee-cs vikasrathee-cs commented Aug 2, 2023

https://cdap.atlassian.net/browse/PLUGIN-1656
Added a field for datatype validation to avoid validation in Salesforce sink plugin. E.g. some existing users are providing date fields as a string in input schema and same was not getting validated and this process was working fine as while creating csv file these string were getting used as it as. We added validation on data types to avoid any wrong value in such fields but customer wants to use existing approach. So, we have added a flag datatype validation which will be false by default so that it will not impact existing users.

@vikasrathee-cs vikasrathee-cs requested review from Aryan-Verma, MrRahulSharma and sau42shri and removed request for Aryan-Verma and MrRahulSharma August 2, 2023 13:49
@vikasrathee-cs vikasrathee-cs changed the title Added a field for datatype validation to avoid validation. PLUGIN-1656 Added a field for datatype validation to avoid validation. Aug 2, 2023
@MrRahulSharma
Copy link
Contributor

Is this a regression ?
Can you update the JIRA and share failure stacktrace ?

@vikasrathee-cs
Copy link
Contributor Author

Is this a regression ? Can you update the JIRA and share failure stacktrace ?

Yes, it was added to validate datatypes also along with name in the schema but previous users don't want this validation as plugin was working fine even if it get mapped with wrong data type. Added a comment in the JIRA for exact error that customer is facing.

@itsprashantlab itsprashantlab requested a review from tivv August 2, 2023 18:17
<artifactId>salesforce-plugins</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.7.0-SNAPSHOT</version>
<packaging>jar</packaging>
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not require to do this change here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

ConcurrencyMode.Parallel.name(), "1000000", "10000", "Fail on Error",
BaseSalesforceETLTest.SECURITY_TOKEN,
null, null);
null, null, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a test for the true scenario as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unit test cases will be added separately as Mockito framework need some upgrade, separate ticket is added for that https://cdap.atlassian.net/browse/PLUGIN-1657

"value": "false",
"label": "NO"
},
"default": "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the default be false ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should be true for new pipelines and false for upgrade pipelines. In case of upgrade pipeline, we are setting it as false in isDatatypeValidation method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants