Skip to content

Conversation

@jaceklaskowski
Copy link
Contributor

What changes were proposed in this pull request?

Added two missing error classes

Why are the changes needed?

MATERIALIZED_VIEW_WITH_MULTIPLE_QUERIES and PIPELINE_GRAPH_NOT_TOPOLOGICALLY_SORTED error classes were not defined yet used in SDP.

Does this PR introduce any user-facing change?

Sort of. It fixes what should be reported properly with the error classes.

How was this patch tested?

Built locally. Awaiting the official build to pass

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Nov 23, 2025
@jaceklaskowski
Copy link
Contributor Author

@sryza Have a look and LMK if new tests should be added. Happy to learn how to add them if needed. Please guide 🙏

"message" : [
"Invalid destination <tableName> with multiple flows: <flows>."
],
"sqlState" : "42000"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we provide a more specific SQL state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've got no idea what would make SQL states more specific, and picked 42000 at random. Can you guide me how to make it more specific, @allisonwang-db 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

I did some investigation into this and couldn't figure out a better SQL state than 42000. @allisonwang-db do you have on in mind? If not, mind if we stick with this?

Copy link
Contributor

Choose a reason for hiding this comment

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

How about 42710?

@jaceklaskowski
Copy link
Contributor Author

@sryza @dongjoon-hyun Do you have any idea which sqlState would be better suited for these missing error classes?

"message" : [
"Invalid destination <tableName> with multiple flows: <flows>."
],
"sqlState" : "42000"
Copy link
Contributor

Choose a reason for hiding this comment

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

I did some investigation into this and couldn't figure out a better SQL state than 42000. @allisonwang-db do you have on in mind? If not, mind if we stick with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants