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

fix: Improving error messages #9637

Merged
merged 7 commits into from
Oct 18, 2022
Merged

fix: Improving error messages #9637

merged 7 commits into from
Oct 18, 2022

Conversation

aliehsaeedii
Copy link
Contributor

Solves issue #8952

Description

Creating a source on an already existing Kafka topic with a defined schema requires adding VALUE_SCHEMA_ID in the WITH clause. Otherwise INSERT INTO fails with an ambiguous error message as explained here. This fix adds a hint to the error message for an easier debugging.

Testing done

Manual Testing
QTT is not able to cover this case.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@aliehsaeedii aliehsaeedii requested a review from a team as a code owner October 10, 2022 14:23
@jnh5y
Copy link
Member

jnh5y commented Oct 10, 2022

Hmm... the elements.json QTT seems to get output from KsqlConnectSerializer.java.

Did you try updating that particular QTT?

@aliehsaeedii
Copy link
Contributor Author

Hmm... the elements.json QTT seems to get output from KsqlConnectSerializer.java.

Did you try updating that particular QTT?

I just tried it and unfortunately it could not catch the exception as well :(

@aliehsaeedii aliehsaeedii changed the title Fix 8952 fix: Improving error messages Oct 11, 2022
Copy link
Member

@jnh5y jnh5y left a comment

Choose a reason for hiding this comment

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

@aliehsaeedii Looks good. I was able to add a QTT.

Does that look reasonable?

Copy link

@jaceklaskowski jaceklaskowski left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants