Skip to content

pow() does not throw error for extra or incorrect arguments like quotient() does #3062

Description

@thadguidry

To Reproduce

Steps to reproduce the behavior:

  1. Open Expression Editor on existing project
  2. On any column use Custom Text Transform with value.pow(2,8)
  3. Notice the preview result of null
  4. Change the expression to value.quotient(2,8)
  5. Notice the preview result of Error: quotient expects two numbers

Current Results

null is shown in preview result, instead of an error (since value is passed as one of the arguments with additional 2 arguments (2,8) supplied)

Expected Behavior

pow() should check arguments like quotient() does and show similar error.

Screenshots

image

image

image

image

Versions

  • Operating System: Windows 10
  • Browser Version: Firefox latest
  • JRE or JDK Version: JDK8
  • OpenRefine: openrefine-3.4-beta-458-g109aa78

Datasets

Additional context

Metadata

Metadata

Assignees

Labels

Type: BugIssues related to software defects or unexpected behavior, which require resolution.error handlingImproving the ways errors are reported to usersgrelThe default expression language, GREL, could be improved in many ways!

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions