Skip to content

[C++][Acero] Disallow null type expression being used for hash join residual filter #48268

Closed

Description

@zanmato1984

Describe the enhancement requested

Currently the supported type of residual filter expression is different between our two hash join implementations:
The HashJoin is assuming only boolean type, which is appropriate

const auto& mask_scalar = mask.scalar_as<BooleanScalar>();

The SwissJoin is more tolerant by exceptionally allowing a null type null (not the boolean type null), which I think is a mistake I made in #39487
if (filter_.IsNullLiteral() || filter_ == literal(false)) {

The current CI contains a test that explicitly exercises null type null, which is also to be revised:

TEST(HashJoin, FineGrainedResidualFilter) {

Component(s)

C++

Activity

  1. self-assigned this
    on Nov 26, 2025
  2. added theissue type on Nov 26, 2025
  3. added a commit that references this issue on Nov 29, 2025
  4. added this to the 23.0.0 milestone on Nov 29, 2025
  5. zanmato1984 commented on Nov 29, 2025

    @zanmato1984
    ContributorAuthor

    Issue resolved by pull request 48272
    #48272

  6. added a commit that references this issue on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions