-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
ksqldb-parser/src/main/java/io/confluent/ksql/parser/SyntaxErrorValidator.java
Outdated
Show resolved
Hide resolved
ksqldb-parser/src/test/java/io/confluent/ksql/parser/KsqlParserTest.java
Outdated
Show resolved
Hide resolved
Hmm... the Did you try updating that particular QTT? |
I just tried it and unfortunately it could not catch the exception as well :( |
There was a problem hiding this 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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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