Skip to content

[INLONG-12117][SDK] Support concat_struct/extract_struct/extract_binary function#12118

Merged
luchunliang merged 7 commits into
apache:masterfrom
luchunliang:INLONG-12117
May 18, 2026
Merged

[INLONG-12117][SDK] Support concat_struct/extract_struct/extract_binary function#12118
luchunliang merged 7 commits into
apache:masterfrom
luchunliang:INLONG-12117

Conversation

@luchunliang
Copy link
Copy Markdown
Contributor

Fixes #12117

Motivation

When parsing Protocol Buffer (PB) formatted data, supports extracting a subset of fields to construct Struct columns, and supports retaining certain fields in their raw PB binary format without expanding them.

Modifications

When parsing Protocol Buffer (PB) formatted data, supports extracting a subset of fields to construct Struct columns, and supports retaining certain fields in their raw PB binary format without expanding them.

Verifying this change

(Please pick either of the following options)

  • This change is a trivial rework/code cleanup without any test coverage.

  • This change is already covered by existing tests, such as:
    (please describe tests)

  • This change added tests and can be verified as follows:

    (example:)

    • Added integration tests for end-to-end deployment with large payloads (10MB)
    • Extended integration test for recovery after broker failure

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a follow-up issue for adding the documentation

aloyszhang
aloyszhang previously approved these changes May 14, 2026
fuweng11
fuweng11 previously approved these changes May 14, 2026
@luchunliang luchunliang dismissed stale reviews from fuweng11 and aloyszhang via fe576ab May 14, 2026 09:44
dockerzhang
dockerzhang previously approved these changes May 15, 2026
…arameters. And the extract_struct function supports extracting array nodes.
…tiple PB nodes and assembles them into one RowData.

New function extract_struct_excluding(structPath, excludeChild1, excludeChild2, ...) — returns a copy of the struct field with the given sub-nodes removed.
Composition extract_binary(extract_struct_excluding(...)) re-encodes the trimmed message as a byte[], allowing bulky sub-nodes to be stripped before being written to a binary sink column.
Multi-level protobuf path lookups now reuse cached intermediate node values, avoiding repeated tree descents and improving transform throughput.
@luchunliang luchunliang merged commit ae3c3df into apache:master May 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SDK] Support concat_struct/extract_struct/extract_binary function

6 participants