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

SortByColumns( [Float(1), Float(3), Float(2)], Value, [3,2,1] ) does not work #2607

Open
CarlosFigueiraMSFT opened this issue Aug 22, 2024 · 0 comments

Comments

@CarlosFigueiraMSFT
Copy link
Contributor

CarlosFigueiraMSFT commented Aug 22, 2024

We should be able to mix/match decimal and float numbers in the order table argument.

Some examples:

  • SortByColumns( [{A:1}, {A:3}, {A:2}], A, [3,2,1] ) - simple case, it works fine
  • SortByColumns( [{A:Float(1)}, {A:Float(3)}, {A:Float(2)}], A, [3,2,1] ) - mixing decimal / floats: doesn't work (compile-time error)
  • SortByColumns( [{A:Float(1)}, {A:Float(3)}, {A:Float(2)}], "A", [3,2,1] ) - same as above, with column name as a literal string
  • SortByColumns( [{A:Float(1)}, {A:Float(3)}, {A:Float(2)}], If(true,"A"), [3,2,1] ) - it compiles, but we get an incorrect result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant