-
Notifications
You must be signed in to change notification settings - Fork 332
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
feat(flow): check sink table mismatch on flow creation #5112
feat(flow): check sink table mismatch on flow creation #5112
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
fde6f0a
to
a1e649b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5112 +/- ##
==========================================
- Coverage 84.08% 83.80% -0.29%
==========================================
Files 1193 1194 +1
Lines 221268 221415 +147
==========================================
- Hits 186047 185550 -497
- Misses 35221 35865 +644 |
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.
Copilot reviewed 8 out of 23 changed files in this pull request and generated no comments.
Files not reviewed (15)
- tests/cases/standalone/common/flow/flow_auto_sink_table.result: Language not supported
- tests/cases/standalone/common/flow/flow_auto_sink_table.sql: Language not supported
- tests/cases/standalone/common/flow/flow_basic.sql: Language not supported
- tests/cases/standalone/common/flow/show_create_flow.result: Language not supported
- src/flow/src/error.rs: Evaluated as low risk
- src/flow/src/server.rs: Evaluated as low risk
- src/flow/src/adapter/util.rs: Evaluated as low risk
- src/flow/src/repr/relation.rs: Evaluated as low risk
- src/flow/src/adapter.rs: Evaluated as low risk
- src/flow/src/adapter/node_context.rs: Evaluated as low risk
- src/flow/src/adapter/table_source.rs: Evaluated as low risk
- src/operator/src/insert.rs: Evaluated as low risk
- src/servers/src/http/result/error_result.rs: Evaluated as low risk
- src/operator/src/expr_factory.rs: Evaluated as low risk
- Cargo.toml: Evaluated as low risk
Changing the status and code header will result in many SQL tests failing due to the modified error message. Focus on your needs rather than altering the underlying code. |
As you can see the results in https://github.com/GreptimeTeam/greptimedb/actions/runs/12377853661/job/34548598017?pr=5112 |
We don't need to send the stack trace to the frontend; users only require the root cause message and the error code. For further investigation, the stack trace and detailed error information can be found in the data nodes or flow nodes. |
8fd9ab7
to
4f1ef27
Compare
revert back those commit and not use typed header for now and separate to another PR once this is merged |
4f1ef27
to
1ddaa7b
Compare
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.
Rest LGTM
f45f69b
to
844674d
Compare
…5112) * tests: more mismatch errors * feat: check sink table schema if exists&prompt nice err msg * chore: rm unused variant * chore: fmt * chore: cargo clippy * feat: check schema on create * feat: better err msg when mismatch * tests: fix a schema mismatch * todo: create sink table * feat: create sink table * fix: find time index * tests: auto created sink table * fix: remove empty keys * refactor: per review * chore: fmt * test: sqlness * chore: after rebase
* tests: more mismatch errors * feat: check sink table schema if exists&prompt nice err msg * chore: rm unused variant * chore: fmt * chore: cargo clippy * feat: check schema on create * feat: better err msg when mismatch * tests: fix a schema mismatch * todo: create sink table * feat: create sink table * fix: find time index * tests: auto created sink table * fix: remove empty keys * refactor: per review * chore: fmt * test: sqlness * chore: after rebase
* tests: more mismatch errors * feat: check sink table schema if exists&prompt nice err msg * chore: rm unused variant * chore: fmt * chore: cargo clippy * feat: check schema on create * feat: better err msg when mismatch * tests: fix a schema mismatch * todo: create sink table * feat: create sink table * fix: find time index * tests: auto created sink table * fix: remove empty keys * refactor: per review * chore: fmt * test: sqlness * chore: after rebase
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
check sink table mismatch on flow creation
Please explain IN DETAIL what the changes are in this PR and why they are needed:
Checklist