-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-49371][SPARK-51086][SQL][CONNECT][DOCS] Fix various doc SQL issues. #49800
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
| .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/errors"))) | ||
| .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/errors"))) | ||
| .map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive"))) | ||
| .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro"))) |
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.
shall we also exclude org.apache.spark.sql.avro?
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.
Well the problem is that org.apache.spark.sql.avro.functions is user facing API. I can mark the entire datasource implementation as private[sql], but I'd prefer to move it elsewhere.
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.
ah I see. Yea we should move it to org.apache.spark.sql.execution.datasources.avro following other file sources.
|
Merging to 4.0/master. |
…sues ### What changes were proposed in this pull request? This PR fixes a bunch of issues with SQL API docs for Scala and Java: - Removes the now defunct Connect API docs. The current SQL docs provide enough coverage. - Removes the following internal packages from the docs: `org.apache.spark.sql.artifact`, `org.apache.spark.sql.scripting`, and `org.apache.spark.sql.ml`. - Fixes the removal of the `org.apache.spark.error` and `org.apache.spark.sql.error` packages. - Marks a bunch of internal classes in the `org.apache.spark.sql` as `private[sql]` to remove them from the docs. - Moves the `TableValuedFunctionArgument` interface from `org.apache.spark.sql` to `org.apache.spark.sql.internal` because it kept showing up in the docs. ### Why are the changes needed? Readable docs are important! ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual inspection of the Java and Scala docs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49800 from hvanhovell/SPARK-49371. Authored-by: Herman van Hovell <herman@databricks.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit aefaa66) Signed-off-by: Herman van Hovell <herman@databricks.com>
…sues ### What changes were proposed in this pull request? This PR fixes a bunch of issues with SQL API docs for Scala and Java: - Removes the now defunct Connect API docs. The current SQL docs provide enough coverage. - Removes the following internal packages from the docs: `org.apache.spark.sql.artifact`, `org.apache.spark.sql.scripting`, and `org.apache.spark.sql.ml`. - Fixes the removal of the `org.apache.spark.error` and `org.apache.spark.sql.error` packages. - Marks a bunch of internal classes in the `org.apache.spark.sql` as `private[sql]` to remove them from the docs. - Moves the `TableValuedFunctionArgument` interface from `org.apache.spark.sql` to `org.apache.spark.sql.internal` because it kept showing up in the docs. ### Why are the changes needed? Readable docs are important! ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual inspection of the Java and Scala docs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#49800 from hvanhovell/SPARK-49371. Authored-by: Herman van Hovell <herman@databricks.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 72aa207) Signed-off-by: Herman van Hovell <herman@databricks.com>
What changes were proposed in this pull request?
This PR fixes a bunch of issues with SQL API docs for Scala and Java:
org.apache.spark.sql.artifact,org.apache.spark.sql.scripting, andorg.apache.spark.sql.ml.org.apache.spark.errorandorg.apache.spark.sql.errorpackages.org.apache.spark.sqlasprivate[sql]to remove them from the docs.TableValuedFunctionArgumentinterface fromorg.apache.spark.sqltoorg.apache.spark.sql.internalbecause it kept showing up in the docs.Why are the changes needed?
Readable docs are important!
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual inspection of the Java and Scala docs.
Was this patch authored or co-authored using generative AI tooling?
No.