-
Notifications
You must be signed in to change notification settings - Fork 591
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
chore: Improve wording of error message #17766
Conversation
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
@@ -7,7 +7,7 @@ create source s ( | |||
properties.bootstrap.server = 'message_queue:29092' | |||
) ROW FORMAT JSON; | |||
|
|||
statement error properties `scan_startup_mode` only support earliest and latest or leave it empty | |||
statement error properties `scan_startup_mode` only supports earliest and latest or leaving it empty |
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.
statement error properties `scan_startup_mode` only supports earliest and latest or leaving it empty | |
statement error property `scan_startup_mode` only accepts three options: earliest, latest, or left empty |
@@ -403,8 +403,8 @@ impl<S: StateStore, const USE_WATERMARK_CACHE: bool> DynamicFilterExecutor<S, US | |||
let (range, _latest_is_lower, is_insert) = self.get_range(&curr, prev); | |||
|
|||
if !is_insert && self.condition_always_relax { | |||
bail!("The optimizer inferred that the right side's change always make the condition more relaxed.\ | |||
But the right changes make the conditions stricter."); | |||
bail!("The optimizer incorrectly assumed that changes on the right side always relax the condition.\ |
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.
It's a bit hard to understand this message.
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.
Added some change suggestions, including the following several aspects:
- Names (of columns, keys, schemas, tables, etc.) should be in
`
inline code. - Proper noun should be in proper form, e.g.
Flink
,RisingWave
,BigQuery
.
Another suggestion: Maybe we should prefer passive voice like Column (is) not found
, Xxx mode is not supported
, Property `xxx` of Xxx is not supported
, Xxx required by xxx is not found
. In this way, we can emphasize the object that is problematic.
...tor-node/risingwave-sink-cassandra/src/main/java/com/risingwave/connector/CassandraUtil.java
Outdated
Show resolved
Hide resolved
...tor-node/risingwave-sink-cassandra/src/main/java/com/risingwave/connector/CassandraUtil.java
Outdated
Show resolved
Hide resolved
...tor-node/risingwave-sink-cassandra/src/main/java/com/risingwave/connector/CassandraUtil.java
Outdated
Show resolved
Hide resolved
...tor-node/risingwave-sink-cassandra/src/main/java/com/risingwave/connector/CassandraUtil.java
Outdated
Show resolved
Hide resolved
...-sink-mock-flink-common/src/main/java/com/risingwave/mock/flink/common/FlinkDynamicUtil.java
Outdated
Show resolved
Hide resolved
...-sink-mock-flink-common/src/main/java/com/risingwave/mock/flink/common/FlinkDynamicUtil.java
Outdated
Show resolved
Hide resolved
…m/risingwave/connector/CassandraUtil.java Co-authored-by: Richard Chien <[email protected]>
…m/risingwave/connector/CassandraUtil.java Co-authored-by: Richard Chien <[email protected]>
…m/risingwave/connector/CassandraUtil.java Co-authored-by: Richard Chien <[email protected]>
…m/risingwave/connector/CassandraUtil.java Co-authored-by: Richard Chien <[email protected]>
…-mock-flink-common/src/main/java/com/risingwave/mock/flink/common/FlinkDynamicUtil.java Co-authored-by: Richard Chien <[email protected]>
…-mock-flink-common/src/main/java/com/risingwave/mock/flink/common/FlinkDynamicUtil.java Co-authored-by: Richard Chien <[email protected]>
Co-authored-by: Richard Chien <[email protected]>
Co-authored-by: Richard Chien <[email protected]>
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.
Co-authored-by: Eric Fu <[email protected]>
Co-authored-by: Eric Fu <[email protected]>
Co-authored-by: Eric Fu <[email protected]>
Co-authored-by: Eric Fu <[email protected]>
Co-authored-by: Eric Fu <[email protected]>
Co-authored-by: Eric Fu <[email protected]>
Co-authored-by: Eric Fu <[email protected]>
@BugenZhao any other suggestions? |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
According to request, use
bail!
.context
anyhow
Err
String.format
to do a global search of error messages and improve the wording.This is the guidance.
Feel free to check out and see if all changes make sense, thanks!