test: cover crc32 on binary inputs by peterxcli · Pull Request #5942 · apache/datafusion-comet · GitHub
Skip to content

test: cover crc32 on binary inputs - #5942

Open
peterxcli wants to merge 1 commit into
apache:mainfrom
peterxcli:test/crc32-binary-inputs
Open

peterxcli wants to merge 1 commit into
apache:mainfrom
peterxcli:test/crc32-binary-inputs

Conversation

@peterxcli

Copy link
Copy Markdown
Member

Which issue does this PR close?

No linked issue; this adds coverage for binary inputs to crc32.

Rationale for this change

The existing crc32 tests use strings or values cast to strings, so they do not exercise arbitrary binary input such as invalid UTF-8 or embedded zero bytes.

What changes are included in this PR?

Extend the SQL fixture with binary columns and literals covering invalid UTF-8, embedded zero bytes, multibyte UTF-8, empty input, NULL, and a checksum above the signed 32-bit range. Compare results with Spark and require Comet execution.

How are these changes tested?

The crc32.sql fixture passes locally through CometSqlFileTestSuite on Spark 3.5.9 and 4.1.3 with JDK 17. All four queries compare results with Spark and require Comet execution. make format (Spark 3.5) and Apache RAT passed.

@github-actions github-actions Bot added enhancement New feature or request test Testing related labels Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request test Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant