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

Undocumented asc behavior #76

Closed
davidcrossey opened this issue Jul 5, 2022 · 1 comment
Closed

Undocumented asc behavior #76

davidcrossey opened this issue Jul 5, 2022 · 1 comment
Labels
content Error or lacuna in content

Comments

@davidcrossey
Copy link
Contributor

davidcrossey commented Jul 5, 2022

As per Behavior of asc table there appears to be undocumented functionality of asc on a table with a single key and single column:

But when there is only one non-keyed column, it's actually the sorted attribute that is set.

q)meta asc ([c1:`a`b] c2:2 1)
c | t f a
--| -----
c1| s 
c2| j   s
q)meta asc ([c1:`a`b] c2:2 1; c3:01b)
c | t f a
--| -----
c1| s
c2| j   p
c3| b

Documentation to be updated: https://code.kx.com/q/ref/asc/#asc
Duplicate information: https://code.kx.com/q/ref/set-attribute/#sorted

FYI: @StephenTaylor-Kx, CC: @rianoc

@ghost ghost self-assigned this Aug 26, 2022
@ghost ghost added the content Error or lacuna in content label Aug 26, 2022
ghost pushed a commit that referenced this issue Aug 26, 2022
@ghost
Copy link

ghost commented Aug 26, 2022

Closed by commit a9a3a82

@ghost ghost closed this as completed Aug 26, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Error or lacuna in content
Projects
None yet
Development

No branches or pull requests

1 participant