-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42323][SQL] Assign name to _LEGACY_ERROR_TEMP_2332
#39977
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
Conversation
_LEGACY_ERROR_TEMP_2332
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala
Outdated
Show resolved
Hide resolved
| messageParameters = Map("msg" -> e.getMessage), | ||
| cause = e) | ||
| errorClass = "UNSUPPORTED_DATASOURCE_FOR_DIRECT_QUERY", | ||
| messageParameters = Map("dataSourceType" -> u.multipartIdentifier.head), |
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.
this is not just assigning an error class name, but changing the error message as well. It's good to put the data source type in the error message, but I don't think we can simply ignore the original error message e.getMessage. @itholic can you fix it?
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.
Please fix it before 3.5, as it's a regression
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.
Oh, seems like the #42124 already fixes the bug from UNSUPPORTED_DATASOURCE_FOR_DIRECT_QUERY ??
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.
are you sure? I don't see it passing the original error message.
What changes were proposed in this pull request?
This PR proposes to assign name to _LEGACY_ERROR_TEMP_2332, "UNSUPPORTED_DATASOURCE_FOR_DIRECT_QUERY".
Why are the changes needed?
We should assign proper name to LEGACY_ERROR_TEMP*
Does this PR introduce any user-facing change?
No
How was this patch tested?
./build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*