Skip to content

error message changes #598

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 23, 2025
Merged

Conversation

itsmekumari
Copy link
Contributor

@itsmekumari itsmekumari commented May 21, 2025

e2e Fix for dependent PR #597

@AnkitCLI AnkitCLI added the build label May 21, 2025
@itsmekumari itsmekumari force-pushed the e2e_errormsgfix branch 2 times, most recently from ea6b8ad to 341201e Compare May 22, 2025 05:04
@itsmekumari itsmekumari marked this pull request as ready for review May 22, 2025 08:00
@sgarg-CS sgarg-CS requested a review from itsankit-google May 22, 2025 08:08
@@ -17,8 +17,7 @@ errorMessageInvalidTableName=Spark program 'phase-1' failed with error: Stage 'S
Errors were encountered during validation. Table 'Table123@' does not exist.. Please check the system logs for more details.
errorMessageInvalidCredentials=Spark program 'phase-1' failed with error: Unable to create config for batchsink SqlServer \
'connection' is invalid: Failed to assign value
errorMessageInvalidsourcetable=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : io.cdap.cdap.api.exception.ProgramFailureException: \
Error occurred while trying to get schema from database.Error message: 'Incorrect syntax near the keyword 'table'.'.
errorMessageInvalidsourcetable=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : io.cdap.cdap.api.exception.ProgramFailureException:
Copy link
Member

Choose a reason for hiding this comment

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

Error message needs to be changed here rather than making it generic:

Error occurred while trying to get schema from database.Error message: 'No tables used'. Error code: '1096'. SQLState: 'HY000'. Please check the system logs for more details.

similar comment for all other changes like SQL error while getting query schema: in the PR. We need to be more specific with error messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes done as suggested.

@AnkitCLI AnkitCLI merged commit 8ffb8d7 into data-integrations:develop May 23, 2025
10 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants