Skip to content
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

[SPARK-46618][SQL] Improve error messages for DATA_SOURCE_NOT_FOUND error #44620

Closed

Conversation

allisonwang-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR improves the error messages for the DATA_SOURCE_NOT_FOUND error.

Why are the changes needed?

To make the error messages more user-friendly and update to date.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing unit tests.

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

No

@@ -2233,7 +2233,7 @@ abstract class DDLSuite extends QueryTest with DDLSuiteBase {
val table2 = catalog.getTableMetadata(TableIdentifier("t2"))
assert(table2.provider == Some("hive"))

val e1 = intercept[SparkClassNotFoundException] {
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove unused import:

import org.apache.spark.{SparkClassNotFoundException ...

[ERROR] /Users/maximgekk/proj/review-allisonwang-db_spark-46618-not-found-err/sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala:27: Unused import
Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unused-imports, site=org.apache.spark.sql.execution.command

@github-actions github-actions bot removed the SQL label Jan 17, 2024
@allisonwang-db
Copy link
Contributor Author

cc @MaxGekk

@MaxGekk
Copy link
Member

MaxGekk commented Jan 18, 2024

The test failures are not related to the PR, I do believe.

+1, LGTM. Merging to master.
Thank you, @allisonwang-db.

@MaxGekk MaxGekk closed this in 72e3f06 Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants