Skip to content

Handle remainder by zero error in spark_modulo function for Spark 4.1 and later. #2855

@rishvin

Description

@rishvin

What is the problem the feature request solves?

PR #1971 introduced spark_modulo function, and found that Spark 4.0 and earlier version threw Divide by Zero instead of Remainder by Zero exception, which was incorrect. And so, filed https://issues.apache.org/jira/browse/SPARK-52659 for Spark to fix this.

That error message has now been fixed in the PR apache/spark#51378 for Spark 4.1 and it will now throw Reminder by Zero instead of misleading Divide by Zero. This would require handling new error here for spark version 4.1 and later.

Describe the potential solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions