-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42987][DOCS] Correction of protobuf sql documentation #40614
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
|
I'have corrected the problem that cause build error in github workflow |
|
cc @SandishKumarHN and @rangadi |
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.
Thanks for the updates Lucas.
This looks great.
A few more fixes if you could:
- add two space indentation for code sample (first screenshot)
- Replace comment string
First, via the protobuf descriptor file, and then via the protobuf message class name.withVia Protobuf descriptor file, or via shaded Java class - In SQL Type conversion table:
- Add one more row :
Anymaps toStructType
- Add one more row :
|
@rangadi The adition of |
|
@rangadi the first two fixes were made |
|
@lucaspompeun thanks for the updates. LGTM.
|
|
@rangadi Done! |
|
Thanks. |
|
Merged to master. |
### What changes were proposed in this pull request? This PR restores the [Protobuf Data Source Guide](https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#python)'s code tabs which #40614 removed for markdown syntax fixes In this PR, we introduce a hidden div to hold the code-block marker of markdown, then make both the liquid and markdown happy. ### Why are the changes needed? improve doc readability and consistency. ### Does this PR introduce _any_ user-facing change? yes, doc change ### How was this patch tested? #### Doc build  #### markdown editor and view  ### Was this patch authored or co-authored using generative AI tooling? no Closes #43361 from yaooqinn/SPARK-45532. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>
### What changes were proposed in this pull request? This PR restores the [Protobuf Data Source Guide](https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#python)'s code tabs which #40614 removed for markdown syntax fixes In this PR, we introduce a hidden div to hold the code-block marker of markdown, then make both the liquid and markdown happy. ### Why are the changes needed? improve doc readability and consistency. ### Does this PR introduce _any_ user-facing change? yes, doc change ### How was this patch tested? #### Doc build  #### markdown editor and view  ### Was this patch authored or co-authored using generative AI tooling? no Closes #43361 from yaooqinn/SPARK-45532. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org> (cherry picked from commit 0257b77) Signed-off-by: Kent Yao <yao@apache.org>

What changes were proposed in this pull request?
Correction of code highlights in SQL protobuf documentation.
old version:


new version:
Why are the changes needed?
To help spark users to understand python, scala and java code examples.
Does this PR introduce any user-facing change?
Yes, it improve user-facing documentation
How was this patch tested?
Comparing visual structure in the old and the new version in vscode markdown preview and github markdown preview.