Skip to content

Spark xxhash64 ignores validity buffer #25505

Closed

Description

@neilconway

Describe the bug

Similar to #25419 and #25293

To Reproduce

CREATE TABLE t AS SELECT named_struct('a', 1, 'b', 'x') AS s;

-- nullif only clears the struct's validity bit; the child arrays still hold 1 and 'x'
SELECT s IS NULL AS is_null,
       xxhash64(s) AS masked_null,
       xxhash64(arrow_cast(NULL, 'Struct("a": Int64, "b": Utf8)')) AS plain_null
FROM (SELECT nullif(s, s) AS s FROM t);
$ cargo run --bin datafusion-cli -- --spark -f repro.sql

+---------+---------------------+------------+
| is_null | masked_null         | plain_null |
+---------+---------------------+------------+
| true    | 6158280145716684778 | 42         |
+---------+---------------------+------------+

Expected behavior

No response

Additional context

No response

Activity

  1. self-assigned this
    on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
  3. added a commit that references this issue on Sep 30, 2026
    f56ae97
  4. added a commit that references this issue on Oct 11, 2026
    9c402b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions