Github user actuaryzhang commented on the issue:
https://github.com/apache/spark/pull/18366
@felixcheung Since there are only two methods with argument signature `(y,
x)`, I think it's best to document them together with the other string
methods. Also, not aiming to rename the parameters since there are lots of
other methods defined this way. In the current PR, I think we just need to be
very clear in the documentation. I made a commit with the following changes.
- In documenting `x`, I call out that it has different meaning in `instr`
and `format_number`.
- In the details part of `instr` and `format_number`, I make explicit
reference to `x` and `y` and explain their meanings.
I think the improved doc together with the examples offer enough clarify
now.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]