This is an automated email from the ASF dual-hosted git repository. maxgekk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 72e3f06c7d94 [SPARK-46618][SQL] Improve error messages for DATA_SOURCE_NOT_FOUND error 72e3f06c7d94 is described below commit 72e3f06c7d94a69f9ff218ccb560ffa5c0f14884 Author: allisonwang-db <allison.w...@databricks.com> AuthorDate: Thu Jan 18 10:47:50 2024 +0300 [SPARK-46618][SQL] Improve error messages for DATA_SOURCE_NOT_FOUND error ### 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 Closes #44620 from allisonwang-db/spark-46618-not-found-err. Authored-by: allisonwang-db <allison.w...@databricks.com> Signed-off-by: Max Gekk <max.g...@gmail.com> --- common/utils/src/main/resources/error/error-classes.json | 2 +- docs/sql-error-conditions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/utils/src/main/resources/error/error-classes.json b/common/utils/src/main/resources/error/error-classes.json index 2fa86de3daa3..601110309ddb 100644 --- a/common/utils/src/main/resources/error/error-classes.json +++ b/common/utils/src/main/resources/error/error-classes.json @@ -895,7 +895,7 @@ }, "DATA_SOURCE_NOT_FOUND" : { "message" : [ - "Failed to find the data source: <provider>. Please find packages at `https://spark.apache.org/third-party-projects.html`." + "Failed to find the data source: <provider>. Make sure the provider name is correct and the package is properly registered and compatible with your Spark version." ], "sqlState" : "42K02" }, diff --git a/docs/sql-error-conditions.md b/docs/sql-error-conditions.md index 35b50d6c6e4f..008346a018e3 100644 --- a/docs/sql-error-conditions.md +++ b/docs/sql-error-conditions.md @@ -496,7 +496,7 @@ Data source '`<provider>`' not found. Please make sure the data source is regist [SQLSTATE: 42K02](sql-error-conditions-sqlstates.html#class-42-syntax-error-or-access-rule-violation) -Failed to find the data source: `<provider>`. Please find packages at `https://spark.apache.org/third-party-projects.html`. +Failed to find the data source: `<provider>`. Make sure the provider name is correct and the package is properly registered and compatible with your Spark version. ### DATA_SOURCE_TABLE_SCHEMA_MISMATCH --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org