Skip to content

Conversation

@izveigor
Copy link
Contributor

@izveigor izveigor commented Apr 5, 2023

Which issue does this PR close?

Part on #5838
Follow on to #5884

Rationale for this change

These tests cover a lot of scalar functions.

What changes are included in this PR?

Tests of the following mathematical scalar functions:

  • abs
  • acos
  • acosh
  • asin
  • asinh
  • atan
  • atanh
  • atan2
  • ceil
  • cos
  • cosh
  • exp
  • floor
  • ln
  • log10
  • log2
  • power
  • round
  • signum
  • sin
  • sinh
  • sqrt
  • cbrt
  • tan
  • tanh
  • trunc

Are these changes tested?

Yes

Are there any user-facing changes?

No

@izveigor izveigor marked this pull request as draft April 5, 2023 18:02
@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Apr 5, 2023

# cos scalar function
query RR rowsort
select cos(0), cos(1.0471976), cos(1,5707963)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the best option is using Pi constant: cos(0), cos(pi() / 3), cos(pi() / 2)

@alamb
Copy link
Contributor

alamb commented Apr 10, 2023

I think this one should be ready to go no after rebasing

@izveigor izveigor marked this pull request as ready for review April 13, 2023 13:55
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.

This looks great to me -- thank you @izveigor


# cos scalar function
query RRR rowsort
select cos(0), cos(pi() / 3), cos(pi() / 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@alamb alamb merged commit 1b1e59b into apache:main Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants