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

fix: LogFunc simplify swaps arguments #10360

Merged
merged 2 commits into from
May 3, 2024

Conversation

erratic-pattern
Copy link
Contributor

Which issue does this PR close?

Closes #10359.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

yes

Are there any user-facing changes?

no

@erratic-pattern erratic-pattern force-pushed the adam/fix-simplify-log branch from d105534 to 7ce7f93 Compare May 2, 2024 21:58
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.

nice find and fix @erratic-pattern 🙏

datafusion/functions/src/math/log.rs Outdated Show resolved Hide resolved
assert_eq!(args.len(), 1);
assert_eq!(args[0], lit(2));
// Two arguments with no simplifications
let result = LogFunc::new()
Copy link
Contributor

Choose a reason for hiding this comment

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

😍

@alamb
Copy link
Contributor

alamb commented May 3, 2024

Thanks again @erratic-pattern

@alamb alamb merged commit b21bf9e into apache:main May 3, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LogFunc simplifier swaps the order of arguments
2 participants