Skip to content

Conversation

@panbingkun
Copy link
Contributor

What changes were proposed in this pull request?

The pr aim to Update the error template of WRONG_NUM_PARAMS.

Why are the changes needed?

More general.

Does this PR introduce any user-facing change?

Yes the PR changes user-facing error messages.

How was this patch tested?

  • Existed UT.
  • Pass GA.

messageParameters = Map("actualNum" -> children.length.toString))
messageParameters = Map(
"functionName" -> prettyName,
"expectedNum" -> "at least two",
Copy link
Member

@MaxGekk MaxGekk Oct 20, 2022

Choose a reason for hiding this comment

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

Let's pass > 1 instead of at least two to don't depend on English. When we will translate error-classes.json to a local language, it would be nice to avoid error messages in different languages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@MaxGekk
Copy link
Member

MaxGekk commented Oct 21, 2022

@panbingkun Seems like a connection issue:

[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbteclipse:sbteclipse-plugin;sbtVersion=1.0;scalaVersion=2.12:5.2.4

Could you re-trigger GAs, please.

@panbingkun
Copy link
Contributor Author

@panbingkun Seems like a connection issue:

[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbteclipse:sbteclipse-plugin;sbtVersion=1.0;scalaVersion=2.12:5.2.4

Could you re-trigger GAs, please.

Done

@panbingkun panbingkun requested a review from MaxGekk October 21, 2022 08:11
@MaxGekk
Copy link
Member

MaxGekk commented Oct 22, 2022

+1, LGTM. Merging to master.
Thank you, @panbingkun.

@MaxGekk MaxGekk closed this in dece380 Oct 22, 2022
@panbingkun panbingkun deleted the update_WRONG_NUM_PARAMS_template branch November 7, 2022 02:13
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
### What changes were proposed in this pull request?
The pr aim to Update the error template of WRONG_NUM_PARAMS.

### Why are the changes needed?
More general.

### Does this PR introduce _any_ user-facing change?
Yes the PR changes user-facing error messages.

### How was this patch tested?
- Existed UT.
- Pass GA.

Closes apache#38319 from panbingkun/update_WRONG_NUM_PARAMS_template.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants