Skip to content

Refactor Spark crc32 & sha1 to remove unnecessary scalar argument check#19466

Merged
Jefffrey merged 2 commits intoapache:mainfrom
Jefffrey:crc-minor-refactor
Dec 24, 2025
Merged

Refactor Spark crc32 & sha1 to remove unnecessary scalar argument check#19466
Jefffrey merged 2 commits intoapache:mainfrom
Jefffrey:crc-minor-refactor

Conversation

@Jefffrey
Copy link
Copy Markdown
Contributor

If we have a scalar argument that is null, that means the datatype it is from is already nullable, so theres no need to check both; we only need to check the nullability of the datatype

@github-actions github-actions Bot added the spark label Dec 23, 2025
@Jefffrey Jefffrey changed the title Refactor crc32 to remove unnecessary scalar argument check Refactor Spark crc32 & sha1 to remove unnecessary scalar argument check Dec 23, 2025
Copy link
Copy Markdown
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Jefffrey just checked Spark for crc32

  override def nullable: Boolean = child.nullable

@Jefffrey Jefffrey added this pull request to the merge queue Dec 24, 2025
Merged via the queue into apache:main with commit 67b526a Dec 24, 2025
27 of 28 checks passed
@Jefffrey Jefffrey deleted the crc-minor-refactor branch December 24, 2025 07:15
github-merge-queue Bot pushed a commit that referenced this pull request Jan 16, 2026
…ary scalar arg check (#19473)

Same as #19466 but for `date_add`, `date_sub` and `bitwise_not`

> If we have a scalar argument that is null, that means the datatype it
is from is already nullable, so theres no need to check both; we only
need to check the nullability of the datatype
de-bgunter pushed a commit to de-bgunter/datafusion that referenced this pull request Mar 24, 2026
…ary scalar arg check (apache#19473)

Same as apache#19466 but for `date_add`, `date_sub` and `bitwise_not`

> If we have a scalar argument that is null, that means the datatype it
is from is already nullable, so theres no need to check both; we only
need to check the nullability of the datatype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants