You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/08/19 10:20:51 UTC
[GitHub] [spark] gengliangwang opened a new pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
gengliangwang opened a new pull request #29476:
URL: https://github.com/apache/spark/pull/29476
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
4. Be sure to keep the PR description updated to reflect all changes.
5. Please write your PR title to summarize what this PR proposes.
6. If possible, provide a concise example to reproduce the issue for a faster review.
7. If you want to add a new configuration, please read the guideline first for naming configurations in
'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
-->
### What changes were proposed in this pull request?
<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->
Currently, the Avro related APIs are missing in the documentation https://spark.apache.org/docs/latest/api/scala/org/apache/spark/index.html . This PR is to:
1. Mark internal Avro related classes as private
2. Show Avro related API in Spark official API documentation
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
Better documentation.
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as the documentation fix.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
If no, write 'No'.
-->
No
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
-->
Build doc and preview:



----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676104391
**[Test build #127643 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127643/testReport)** for PR 29476 at commit [`38f635e`](https://github.com/apache/spark/commit/38f635e6cfcf35eabb659fe1dfc6df036e4b5758).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676362258
Merged build finished. Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang closed pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang closed pull request #29476:
URL: https://github.com/apache/spark/pull/29476
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677692144
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678081594
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473802656
##########
File path: project/SparkBuild.scala
##########
@@ -852,6 +852,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
+ .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Review comment:
Then we will have to move `org.apache.spark.sql.avro.AvroFileFormat` to `org.apache.spark.sql.execution.datasources.avro.AvroFileFormat` as well, to make it consistent with ParquetFileFormat.
Originally the package `org.apache.spark.sql.avro` is created for consistence with the kafka-sql module, since both of them are external modules.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678036907
**[Test build #127722 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127722/testReport)** for PR 29476 at commit [`8996cba`](https://github.com/apache/spark/commit/8996cbac8aa6c42b46269ebd3cd354e2caec9e95).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r474063007
##########
File path: project/SparkBuild.scala
##########
@@ -867,10 +867,10 @@ object Unidoc {
Review comment:
Nice catch, thanks!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678036903
I think it's good to go. It's my old habit to retrigger the Jenkins tests ...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676362258
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473601846
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -37,16 +38,25 @@ object SchemaConverters {
private lazy val nullSchema = Schema.create(Schema.Type.NULL)
+ /**
+ * Internal wrapper for SQL data type and nullability.
+ *
+ * @since 2.4
+ */
+ @DeveloperApi
case class SchemaType(dataType: DataType, nullable: Boolean)
/**
- * This function takes an avro schema and returns a sql schema.
+ * Converts an Avro schema to a corresponding Spark SQL schema.
+ *
+ * @since 2.4
*/
+ @DeveloperApi
Review comment:
How about putting the `@DeveloperApi` in `object SchemaConverters`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677548583
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677529613
**[Test build #127688 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127688/testReport)** for PR 29476 at commit [`8996cba`](https://github.com/apache/spark/commit/8996cbac8aa6c42b46269ebd3cd354e2caec9e95).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473592005
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -37,16 +38,25 @@ object SchemaConverters {
private lazy val nullSchema = Schema.create(Schema.Type.NULL)
+ /**
+ * Internal wrapper for SQL data type and nullability.
+ *
+ * @since 2.4
Review comment:
`2.4.0`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676357751
**[Test build #127643 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127643/testReport)** for PR 29476 at commit [`38f635e`](https://github.com/apache/spark/commit/38f635e6cfcf35eabb659fe1dfc6df036e4b5758).
* This patch **fails PySpark unit tests**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678081594
Merged build finished. Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473847073
##########
File path: project/SparkBuild.scala
##########
@@ -852,6 +852,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
+ .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Review comment:
The `ignoreUndocumentedPackages` here is to ignore some packages. I think it will be complex if we introduce another step for adding some package as whitelist(allowlist)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676989015
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678041769
Merging to master/branch-3.0
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677692144
Merged build finished. Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678081597
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127722/
Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678081116
**[Test build #127722 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127722/testReport)** for PR 29476 at commit [`8996cba`](https://github.com/apache/spark/commit/8996cbac8aa6c42b46269ebd3cd354e2caec9e95).
* This patch **fails due to an unknown error code, -9**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473052781
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -40,13 +40,13 @@ object SchemaConverters {
case class SchemaType(dataType: DataType, nullable: Boolean)
Review comment:
Got it. The code is updated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677296396
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677441456
**[Test build #127682 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127682/testReport)** for PR 29476 at commit [`453e91e`](https://github.com/apache/spark/commit/453e91e4179531dc7aa0cd525bc347c027a7c119).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676432992
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676433012
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127651/
Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676095935
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473791082
##########
File path: project/SparkBuild.scala
##########
@@ -852,6 +852,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
+ .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Review comment:
shall we just rename the package? all other file source v2 is in `org.apache.spark.sql.execution.datasources.v2`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gatorsmile commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gatorsmile commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678035318
LGTM
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678036907
**[Test build #127722 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127722/testReport)** for PR 29476 at commit [`8996cba`](https://github.com/apache/spark/commit/8996cbac8aa6c42b46269ebd3cd354e2caec9e95).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677548583
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677097933
Looks okay.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677692158
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127688/
Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676987511
**[Test build #127673 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127673/testReport)** for PR 29476 at commit [`71e8042`](https://github.com/apache/spark/commit/71e8042f2ab01d0524d429159354e70ce5a75f59).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676362282
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127643/
Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gatorsmile commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gatorsmile commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473635715
##########
File path: project/SparkBuild.scala
##########
@@ -867,10 +867,10 @@ object Unidoc {
Review comment:
in line 854, add
```Scala
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676412001
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678035967
@HyukjinKwon Shall we merge this one since the github action jobs pass?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677691330
**[Test build #127688 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127688/testReport)** for PR 29476 at commit [`8996cba`](https://github.com/apache/spark/commit/8996cbac8aa6c42b46269ebd3cd354e2caec9e95).
* This patch **fails Spark unit tests**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676989015
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677441456
**[Test build #127682 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127682/testReport)** for PR 29476 at commit [`453e91e`](https://github.com/apache/spark/commit/453e91e4179531dc7aa0cd525bc347c027a7c119).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473797847
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -37,16 +38,25 @@ object SchemaConverters {
private lazy val nullSchema = Schema.create(Schema.Type.NULL)
+ /**
+ * Internal wrapper for SQL data type and nullability.
+ *
+ * @since 2.4
+ */
+ @DeveloperApi
case class SchemaType(dataType: DataType, nullable: Boolean)
/**
- * This function takes an avro schema and returns a sql schema.
+ * Converts an Avro schema to a corresponding Spark SQL schema.
+ *
+ * @since 2.4
*/
+ @DeveloperApi
Review comment:
I am not sure what is the best practice for the annotation:
1. outer object/class only
2. methods only
3. both
I can see 3 cases in the current code..
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677296396
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473791457
##########
File path: project/SparkBuild.scala
##########
@@ -852,6 +852,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
+ .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Review comment:
it's weird that avro doesn't follow this rule.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676104391
**[Test build #127643 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127643/testReport)** for PR 29476 at commit [`38f635e`](https://github.com/apache/spark/commit/38f635e6cfcf35eabb659fe1dfc6df036e4b5758).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676432883
**[Test build #127651 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127651/testReport)** for PR 29476 at commit [`2eab70f`](https://github.com/apache/spark/commit/2eab70f272e9834bbdd2d3f4bc2f44d287fb9803).
* This patch **fails Java style tests**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473791082
##########
File path: project/SparkBuild.scala
##########
@@ -852,6 +852,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
+ .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Review comment:
shall we just rename the package? all other file source is v2 is in `org.apache.spark.sql.execution.datasources.v2`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677530460
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677545133
**[Test build #127682 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127682/testReport)** for PR 29476 at commit [`453e91e`](https://github.com/apache/spark/commit/453e91e4179531dc7aa0cd525bc347c027a7c119).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676410025
**[Test build #127651 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127651/testReport)** for PR 29476 at commit [`2eab70f`](https://github.com/apache/spark/commit/2eab70f272e9834bbdd2d3f4bc2f44d287fb9803).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678037255
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473596416
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -37,16 +38,25 @@ object SchemaConverters {
private lazy val nullSchema = Schema.create(Schema.Type.NULL)
+ /**
+ * Internal wrapper for SQL data type and nullability.
+ *
+ * @since 2.4
+ */
+ @DeveloperApi
case class SchemaType(dataType: DataType, nullable: Boolean)
/**
- * This function takes an avro schema and returns a sql schema.
+ * Converts an Avro schema to a corresponding Spark SQL schema.
+ *
+ * @since 2.4
*/
+ @DeveloperApi
Review comment:
I think we can just remove this on each method since we already noted in the outer object (and other methods became properly private)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473818852
##########
File path: project/SparkBuild.scala
##########
@@ -852,6 +852,7 @@ object Unidoc {
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/hive/test")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/catalog/v2/utils")))
.map(_.filterNot(_.getCanonicalPath.contains("org/apache/hive")))
+ .map(_.filterNot(_.getCanonicalPath.contains("org/apache/spark/sql/v2/avro")))
Review comment:
I think the problem here is we have public APIs in the avro module, while we assume it should all be private like other external modules.
I think a safer way is to use whitelist and only generate doc for the classes we explicitly specified in avro module. Is it possible to do so?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473886762
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -37,16 +38,25 @@ object SchemaConverters {
private lazy val nullSchema = Schema.create(Schema.Type.NULL)
+ /**
+ * Internal wrapper for SQL data type and nullability.
+ *
+ * @since 2.4
+ */
+ @DeveloperApi
case class SchemaType(dataType: DataType, nullable: Boolean)
/**
- * This function takes an avro schema and returns a sql schema.
+ * Converts an Avro schema to a corresponding Spark SQL schema.
+ *
+ * @since 2.4
*/
+ @DeveloperApi
Review comment:
I think it's fine to mark the object alone.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677291336
**[Test build #127673 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127673/testReport)** for PR 29476 at commit [`71e8042`](https://github.com/apache/spark/commit/71e8042f2ab01d0524d429159354e70ce5a75f59).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676987511
**[Test build #127673 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127673/testReport)** for PR 29476 at commit [`71e8042`](https://github.com/apache/spark/commit/71e8042f2ab01d0524d429159354e70ce5a75f59).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677530460
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677442040
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678037255
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676410025
**[Test build #127651 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127651/testReport)** for PR 29476 at commit [`2eab70f`](https://github.com/apache/spark/commit/2eab70f272e9834bbdd2d3f4bc2f44d287fb9803).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r472957083
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -40,13 +40,13 @@ object SchemaConverters {
case class SchemaType(dataType: DataType, nullable: Boolean)
Review comment:
if you target to expose and document `SchemaConverters`, it should probably be marked as `@DeveloperAPI` with a proper version in the doc.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676432992
Merged build finished. Test FAILed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676412001
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677529613
**[Test build #127688 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127688/testReport)** for PR 29476 at commit [`8996cba`](https://github.com/apache/spark/commit/8996cbac8aa6c42b46269ebd3cd354e2caec9e95).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-678035539
retest this please
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677442040
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gatorsmile commented on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
gatorsmile commented on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-677250867

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #29476:
URL: https://github.com/apache/spark/pull/29476#discussion_r473791927
##########
File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
##########
@@ -37,16 +38,25 @@ object SchemaConverters {
private lazy val nullSchema = Schema.create(Schema.Type.NULL)
+ /**
+ * Internal wrapper for SQL data type and nullability.
+ *
+ * @since 2.4
+ */
+ @DeveloperApi
case class SchemaType(dataType: DataType, nullable: Boolean)
/**
- * This function takes an avro schema and returns a sql schema.
+ * Converts an Avro schema to a corresponding Spark SQL schema.
+ *
+ * @since 2.4
*/
+ @DeveloperApi
Review comment:
I think so. We just need to mark the object.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29476: [SPARK-32660][SQL][DOC] Show Avro related API in documentation
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29476:
URL: https://github.com/apache/spark/pull/29476#issuecomment-676095935
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org