Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added expresion to "with_standard_argument" #12926

Merged
merged 10 commits into from
Oct 20, 2024

Conversation

jonathanc-n
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

In #12880, there is a discussion to add an option for when there is just 'expression' put in the docs.

What changes are included in this PR?

Added an option for "with_standard_argument", when None is passed through it passes the standard argument for when 'expression' is passed in.

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added logical-expr Logical plan and expressions functions labels Oct 14, 2024
@jonathanc-n
Copy link
Contributor Author

@Omega359 @findepi Do these changes look good? I'll make updates to the #12880 pr if this seems fine.

@jonathanc-n jonathanc-n changed the title Added Added expresion to "with_standard_argument" Oct 14, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Oct 15, 2024
@jonathanc-n
Copy link
Contributor Author

@Omega359 Should be good now! thanks for the review

@jonathanc-n jonathanc-n reopened this Oct 17, 2024
@jonathanc-n jonathanc-n requested a review from Omega359 October 17, 2024 05:00
@@ -295,10 +295,10 @@ fn get_concat_ws_doc() -> &'static Documentation {
"separator",
"Separator to insert between concatenated strings.",
)
.with_standard_argument("str", "String")
.with_standard_argument("str", Some("String"))
.with_standard_argument(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.with_standard_argument(
.with_argument(

Copy link
Contributor

Choose a reason for hiding this comment

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

I think github messed up the line, should be for this one

.with_standard_argument(
                "str_n",
                Some("Subsequent string expressions to concatenate."),

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks nice to me. Thank you @jonathanc-n @findepi and @Omega359

@alamb
Copy link
Contributor

alamb commented Oct 17, 2024

The CI failure https://github.com/apache/datafusion/actions/runs/11388211741/job/31684979969?pr=12926n should be fixed by #12991 I think

@jonathanc-n jonathanc-n reopened this Oct 18, 2024
@jonathanc-n
Copy link
Contributor Author

@alamb It doesn't seem to be passing still despite the pr merge

@alamb
Copy link
Contributor

alamb commented Oct 19, 2024

I @jonathanc-n -- maybe you could try to merge up from main locally and rerun update_docs.sh again? Maybe there is a logical conflict somewhere

@Omega359
Copy link
Contributor

LGTM :)

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @jonathanc-n and @Omega359 🚀

@alamb alamb merged commit e9584bc into apache:main Oct 20, 2024
25 checks passed
@jonathanc-n jonathanc-n deleted the change-with_standard_argument branch October 21, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation functions logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants