Skip to content

Conversation

@yaooqinn
Copy link
Member

What changes were proposed in this pull request?

Similar to how Avro functions have their own avro_funcs group, Protobuf functions (from_protobuf, to_protobuf) should have their own protobuf_funcs group instead of being grouped under misc_funcs.

This improves consistency with how other format-specific functions are organized and makes the documentation clearer for users.

Changes:

  • Move from_protobuf and to_protobuf from misc_funcs to protobuf_funcs
  • Add protobuf_funcs to the groups set in gen-sql-functions-docs.py

Why are the changes needed?

Consistency with avro_funcs, json_funcs, csv_funcs, xml_funcs groupings.

Does this PR introduce any user-facing change?

No functional changes. The only difference is in how functions are grouped in documentation.

How was this patch tested?

Existing tests.

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

Yes, GitHub Copilot was used to assist with this change.

@github-actions github-actions bot added the SQL label Jan 29, 2026
@github-actions
Copy link

github-actions bot commented Jan 29, 2026

JIRA Issue Information

=== Improvement SPARK-55277 ===
Summary: [SQL] Add protobuf_funcs group for Protobuf SQL functions
Assignee: Kent Yao
Status: Resolved
Affected: ["4.2.0"]


This comment was automatically generated by GitHub Actions

Copy link
Contributor

@allisonwang-db allisonwang-db left a comment

Choose a reason for hiding this comment

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

Are there going to have more protobuf related functions besides these two?

@yaooqinn
Copy link
Member Author

Good question. I think there could be more for protobuf function comparing to others like json, csv, xml, etc., a clear group can give us more insight for what's missing for feature parity

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-55277][SQL] Add protobuf_funcs group for Protobuf SQL functions [SPARK-55277][SQL] Add protobuf_funcs group for Protobuf SQL functions Jan 30, 2026
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you for revisiting this area and re-organizing, @yaooqinn .

@yaooqinn yaooqinn closed this in efdb492 Jan 30, 2026
@yaooqinn yaooqinn deleted the SPARK-55277-protobuf-funcs-group branch January 30, 2026 06:57
@yaooqinn
Copy link
Member Author

Thank you @dongjoon-hyun , merged to master

@yaooqinn yaooqinn restored the SPARK-55277-protobuf-funcs-group branch January 30, 2026 07:33
@yaooqinn yaooqinn reopened this Jan 30, 2026
@yaooqinn yaooqinn force-pushed the SPARK-55277-protobuf-funcs-group branch from c0c531c to 44d3554 Compare January 30, 2026 07:38
@yaooqinn
Copy link
Member Author

looks like the gha gave me a wrong signal, let me revert and rerun the tests in PR

Similar to how Avro functions have their own 'avro_funcs' group, Protobuf functions (from_protobuf, to_protobuf) should have their own 'protobuf_funcs' group instead of being grouped under 'misc_funcs'.

This improves consistency with how other format-specific functions are organized and makes the documentation clearer for users.

### What changes were proposed in this pull request?

- Move from_protobuf and to_protobuf from misc_funcs to protobuf_funcs
- Add protobuf_funcs to the groups set in gen-sql-functions-docs.py

### Why are the changes needed?

Consistency with avro_funcs, json_funcs, csv_funcs, xml_funcs groupings.

### Does this PR introduce _any_ user-facing change?

No functional changes. The only difference is in how functions are grouped in documentation.

### How was this patch tested?

Existing tests.

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

Yes, GitHub Copilot was used to assist with this change.
@yaooqinn yaooqinn force-pushed the SPARK-55277-protobuf-funcs-group branch from 44d3554 to f98168b Compare January 30, 2026 09:54
@yaooqinn yaooqinn closed this in 4e05372 Jan 30, 2026
@yaooqinn yaooqinn deleted the SPARK-55277-protobuf-funcs-group branch January 30, 2026 13:56
@yaooqinn
Copy link
Member Author

Merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants