-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
QueryRewrite: materializer doesn't intercept reader exceptions #15751
Comments
Throwing any exception in new pipeline is not implemented yet. |
OK. Right now SqlException bubbles up from SqlClient which seems fine. Am not sure this is totally critical for 3.0, we can discuss - I'll update with tests that depend on this as I see them. |
Disable those tests with TaskList#24 |
OK, as I've already opened this issue we can use it to track? Added reference from task list. |
@smitpatel @roji This should only happen when "rich data logging" is enabled, right? Also, I'm not sure I agree with throwing different exception types. It makes it more difficult if people are trying to catch these exceptions in one place. (The inner exception should vary, of course, but I think the one we throw should be the same.) |
Note so that I find this next time I search: this is EnableDetailedErrors. |
In the old pipeline we had
TypedRelationalValueBufferFactoryFactory.ThrowReadValueException()
intercepting exceptions and throwing threw InvalidOperationException with more detailed messages (including entity name, property name, etc.). We should bring this back in the new pipeline.Note: the old implementation always threw InvalidOperationException, including for InvalidCastExceptions coming out of the database layer. We should probably change this to throw InvalidCastException instead.
Tests blocked by this (there are probably more):
The text was updated successfully, but these errors were encountered: