Skip to content

Handle data row with binary encoding and null#228

Merged
tobyhede merged 1 commit into
feat/proxy-eql-v2-integrationfrom
handle-datarow-with-binary-encoding-and-null
May 13, 2025
Merged

Handle data row with binary encoding and null#228
tobyhede merged 1 commit into
feat/proxy-eql-v2-integrationfrom
handle-datarow-with-binary-encoding-and-null

Conversation

@tobyhede
Copy link
Copy Markdown
Contributor

When using binary encoding with a null value in a RowType the DataColumn contains a header that contains the field length information.

This adds a check for a NULL len in the binary DataColumn header.
If a NULL column is found, the column bytes are rewritten to be NULL (removing the header)

This works because the returned type is the cast type of the configured column, which is not a RowType and the vanilla NULL encoding is expected.

@tobyhede tobyhede changed the base branch from main to feat/proxy-eql-v2-integration May 13, 2025 10:51
@tobyhede tobyhede force-pushed the handle-datarow-with-binary-encoding-and-null branch from fda9a99 to 0faf1d0 Compare May 13, 2025 10:57
@tobyhede tobyhede force-pushed the handle-datarow-with-binary-encoding-and-null branch from 0faf1d0 to 497a40b Compare May 13, 2025 11:03
@tobyhede tobyhede merged commit 2a8eac3 into feat/proxy-eql-v2-integration May 13, 2025
1 check failed
@tobyhede tobyhede deleted the handle-datarow-with-binary-encoding-and-null branch May 13, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants